Skip to main content

Module kdf

Module kdf 

Source
Expand description

HKDF-SHA-384 and HMAC-SHA-384. Domain-separated; no secret XOR combiners.

Functionsยง

hkdf_sha384
HKDF-SHA384 extract+expand over ikm/salt/info into caller buffer.
hmac_sha384
HMAC-SHA384 of data under key into out.
hmac_sha384_verify
Constant-time HMAC-SHA-384 verification. Mismatched tags are CryptoFailure.
hybrid_shared_secret
Combine ML-KEM and X25519 secrets: HKDF(IKM = kem || x25519). Never XOR.