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

x/hpke/mod.ts>CipherSuite#deriveKeyPair

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

Use KemInterface.deriveKeyPair instead.

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

Derives a key pair for the cipher suite in the manner defined in RFC9180 Section 7.1.3.

If the error occurred, throws DeriveKeyPairError.

Parameters

ikm: ArrayBuffer

A byte string of input keying material. The maximum length is 128 bytes.

Returns

Promise<CryptoKeyPair>

A key pair derived.