Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 780 Bytes

File metadata and controls

22 lines (13 loc) · 780 Bytes

Variable: KDF_SHAKE128

const KDF_SHAKE128: KDFFactory

SHAKE128 key derivation function.

A one-stage KDF using the SHAKE128 extendable-output function (XOF) with an output length (Nh) of 32 bytes.

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

  • SHAKE128 (cSHAKE128 without any parameters) digest

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-PQ One-Stage KDFs