hkdf_sha384.nx
buildroot/runtime/hkdf_sha384.nx
about
hkdf_sha384.nx -- HKDF-SHA-384 (RFC 5869).
Parallel to hkdf.nx but keyed on HMAC-SHA-384. Required for
TLS 1.3 cipher suites that use SHA-384 throughout the key
schedule (e.g. TLS_AES_256_GCM_SHA384 per RFC 8446 §B.4).
Two-stage design (identical shape to hkdf.nx):
Extract(salt, IKM) -> PRK = HMAC-SHA-384(salt, IKM) [48-byte PRK]
Expand(PRK, info, L) -> OKM via counter-mode HMAC chain
Output capacity: 255 * 48 = 12240 bytes. TLS 1.3 never needs
more than a few hundred, so this is ample.
dependencies 2 imports · 0 importers
imports: syscalls.nxhmac_sha384.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 17 | const HKDF384_HASH: i64 = 48 |
| 18 | const HKDF384_MAX_L: i64 = 12240 |
functions
| 20 | func hkdf384_extract(salt: *u8, salt_len: i64, |
| 34 | func hkdf384_expand(prk: *u8, |
| 76 | func main() -> i64 { |