Skip to main content
Go to Latest
class DiffieHellmanGroup
Re-export
import { DiffieHellmanGroup } from "https://deno.land/std@0.176.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
generateKeys(encoding: BinaryToTextEncoding): string
getGenerator(): Buffer
getGenerator(encoding: BinaryToTextEncoding): string
getPrime(): Buffer
getPrime(encoding: BinaryToTextEncoding): string
getPrivateKey(): Buffer
getPrivateKey(encoding: BinaryToTextEncoding): string
getPublicKey(): Buffer
getPublicKey(encoding: BinaryToTextEncoding): string