Go to Latest
class DiffieHellmanGroup
import { DiffieHellmanGroup } from "https://deno.land/std@0.145.0/node/crypto.ts";

Constructors

new
DiffieHellmanGroup(_name: string)

Properties

verifyError: number

Methods

computeSecret(otherPublicKey: ArrayBufferView): Buffer
computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer
computeSecret(otherPublicKey: ArrayBufferView, outputEncoding: BinaryToTextEncoding): string
computeSecret(
otherPublicKey: string,
inputEncoding: BinaryToTextEncoding,
outputEncoding: BinaryToTextEncoding,
): string
computeSecret(
_otherPublicKey: ArrayBufferView | string,
_inputEncoding?: BinaryToTextEncoding,
_outputEncoding?: BinaryToTextEncoding,
): Buffer | string
generateKeys(): Buffer
generateKeys(_encoding?: BinaryToTextEncoding): Buffer | string
getGenerator(): Buffer
getGenerator(_encoding?: BinaryToTextEncoding): Buffer | string
getPrime(): Buffer
getPrime(encoding: BinaryToTextEncoding): string
getPrime(_encoding?: BinaryToTextEncoding): Buffer | string
getPrivateKey(): Buffer
getPrivateKey(_encoding?: BinaryToTextEncoding): Buffer | string
getPublicKey(): Buffer
getPublicKey(_encoding?: BinaryToTextEncoding): Buffer | string
import DiffieHellmanGroup
import { DiffieHellmanGroup } from "https://deno.land/std@0.145.0/node/crypto.ts";