import { ECDH } from "https://dotland.deno.dev/std@0.177.0/node/internal/crypto/diffiehellman.ts";
Methods
computeSecret(otherPublicKey: ArrayBufferView): Buffer
computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer
computeSecret(otherPublicKey: ArrayBufferView, outputEncoding: BinaryToTextEncoding): string
computeSecret(): string
generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string
getPrivateKey(encoding: BinaryToTextEncoding): string
getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string
setPrivateKey(privateKey: ArrayBufferView): void
setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void
Static Methods
convertKey(): Buffer | string
_key: BinaryLike,
_curve: string,
_inputEncoding?: BinaryToTextEncoding,
_outputEncoding?: ,
| "latin1"
| "hex"
| "base64"
| "base64url"
_format?: "uncompressed" | "compressed" | "hybrid",