Skip to main content
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.7/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.