Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hpke/mod.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/mod.ts";

Generates a key pair for the cipher suite.

If the error occurred, throws NotSupportedError.

Returns

Promise<CryptoKeyPair>

A key pair generated.