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_SHA512

const KDF_HKDF_SHA512: KDFFactory

HKDF-SHA512 key derivation function.

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

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

  • HMAC with SHA-512

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