You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move TLS 1.3 HKDF-Expand-Label into the FIPS module
Introduces CRYPTO_tls13_hkdf_expand_label in crypto/fipsmodule/tls/kdf.c,
mirroring the CRYPTO_tls1_prf pattern already in that file. The function
builds the HkdfLabel structure (RFC 8446 §7.1) via CBB and calls
HKDF_expand, bracketed by FIPS_service_indicator_lock_state /
unlock_state and a post-success TLS13_KDF_verify_service_indicator call
that approves SHA2-256 and SHA2-384 (matching what the ACVP config
registers).
Consumers now delegate:
* ssl/tls13_enc.cc's hkdf_expand_label collapses to a thin wrapper.
* The ACVP modulewrapper's HKDFExpandLabel delegates to the same
function, so ACVP exercises the actual FIPS-module code path
instead of a parallel label-construction reimplementation.
A TLS13-KDF KAT (HKDF_extract -> CRYPTO_tls13_hkdf_expand_label, using
the RFC 8448 early-secret / 'c e traffic' derivation) is added to the
FIPS self-test, along with a matching break-kat.go entry. A new
parameterised TLS13KDF_ServiceIndicatorTest covers the approval policy
across SHA-1 / SHA-224 / SHA-256 / SHA-384 / SHA-512.
0 commit comments