Skip to main content

Module hkdf

Module hkdf 

Source
Expand description

HKDF-SHA256 (RFC 5869).

Constants§

PRK_LEN
Pseudorandom key length in bytes (SHA-256 output).

Functions§

derive
HKDF-Extract followed by HKDF-Expand.
expand
HKDF-Expand of prk into out. Fails if prk is shorter than 32 bytes or out is longer than 255 * 32 bytes.
extract
HKDF-Extract. Returns the pseudorandom key.