nx_hmac_sha512.nx
buildroot/runtime/nx_hmac_sha512.nx
about
hmac_sha512.nx -- HMAC-SHA-512 (RFC 2104 / FIPS 198-1).
license_tier: INDEPENDENT_REDERIVE
genealogy_id: international-research-sources/nist/fips_198_1
Completes the HMAC family: SHA-256, SHA-384, SHA-512. Used
where TLS cipher suites or key-derivation ladders want the
full 512-bit MAC width (relatively rare, but present in some
SSH / OpenPGP / JWT profiles).
Differences from hmac.nx:
- Block size B = 128 bytes (SHA-512 block), not 64.
- Hash output = 64 bytes (SHA-512), not 32.
- Uses sha512_init instead of sha256_init.
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_sha512.nx
imported by: nx_hkdf_sha512.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 25 | const HMAC512_BLOCK: i64 = 128 |
| 26 | const HMAC512_HASH: i64 = 64 |
| 27 | const IPAD_512: i64 = 0x36 |
| 28 | const OPAD_512: i64 = 0x5C |
functions
| 30 | func hmac_sha512(key: *u8, key_len: i64, msg: *u8, msg_len: i64, called by 3: hkdf512_extracthkdf512_expandmain calls 5: sys_mmapsha512_digestsha512_initsha512_updatesha512_final |
| 76 | func main() -> i64 |