wire / wire-format / hkdf

HKDF (HMAC-based Key Derivation Function)

HKDF (RFC 5869) derives keys from a shared secret. Two phases: Extract (PRK = HMAC-Hash(salt, IKM)) and Expand (OKM = T_1 || T_2 || ... where T_i = HMAC-Hash(PRK, T_{i-1} || info || i)). Used in TLS 1.3, Signal Protocol, and many modern protocols.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: HKDF (HMAC-based Key Derivation Function)

wire format

spec: RFC 5869

HKDF (RFC 5869) derives keys from a shared secret. Two phases: Extract (PRK = HMAC-Hash(salt, IKM)) and Expand (OKM = T_1 || T_2 || ... where T_i = HMAC-Hash(PRK, T_{i-1} || info || i)). Used in TLS 1.3, Signal Protocol, and many modern protocols.

fieldsizemeaning
ExtractfunctionPRK = HMAC-Hash(salt, IKM). Extracts a pseudorandom key from input key material.
ExpandfunctionOKM = T_1 || T_2 || ... || T_N. T_i = HMAC-Hash(PRK, T_{i-1} || info || i). Each T_i is HashLen bytes.
SaltoptionalOptional salt (recommended for better security). If not provided, zeros.
IKMvariableInput Key Material (shared secret from DH, etc.).
InfovariableContext/application-specific info (e.g., 'tls13 key', 'tls13 iv').
OKM lengthvariableOutput Key Material length (up to 255 * HashLen).

example:

00 00 00 00

HKDF (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/hkdf or /wire-format/hkdf.json