Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 804 Bytes

File metadata and controls

22 lines (13 loc) · 804 Bytes

Variable: KDF_HKDF_SHA256

const KDF_HKDF_SHA256: KDFFactory

HKDF-SHA256 key derivation function.

A two-stage KDF using HMAC-based Extract-and-Expand as specified in RFC 5869. Uses SHA-256 as the hash function with an output length (Nh) of 32 bytes.

Depends on the following Web Cryptography algorithms being supported in the runtime:

  • HMAC with SHA-256

This is a factory function that must be passed to the CipherSuite constructor.

Tip

An implementation of this algorithm not reliant on Web Cryptography is also exported by @panva/hpke-noble

See

HPKE KDF Identifiers