Go to Latest
class DiffieHellmanGroup
import { DiffieHellmanGroup } from "https://dotland.deno.dev/std@0.177.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
generateKeys(): Buffer
getGenerator(): Buffer
getPrime(): Buffer
getPrime(encoding: BinaryToTextEncoding): string
getPrivateKey(): Buffer
getPublicKey(): Buffer
import DiffieHellmanGroup
import { DiffieHellmanGroup } from "https://dotland.deno.dev/std@0.177.0/node/crypto.ts";