Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hpke/src/cipherSuite.ts>CipherSuite#generateKeyPair

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
method CipherSuite.prototype.generateKeyPair
Deprecated
Deprecated

Use KemInterface.generateKeyPair instead.

import { CipherSuite } from "https://deno.land/x/hpke@1.2.9/src/cipherSuite.ts";

Generates a key pair for the cipher suite.

If the error occurred, throws NotSupportedError.

Returns

Promise<CryptoKeyPair>

A key pair generated.