code wiki / (root) / hkdf_sha512.nx

hkdf_sha512.nx

buildroot/runtime/hkdf_sha512.nx

2745 B89 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind tooltopic hkdf
docsdependenciesstructsconstsfunctions

about

hkdf_sha512.nx -- HKDF-SHA-512 (RFC 5869). Final HKDF variant, parallel to hkdf.nx (SHA-256) and hkdf_sha384.nx (SHA-384). Used where a downstream primitive requires the full 512-bit output width or where the whole key ladder is anchored on SHA-512. Output capacity: 255 * 64 = 16320 bytes. Ample for any TLS / SSH session derivation.

dependencies 2 imports · 0 importers

syscalls.nx hmac_sha512.nx hkdf_sha512.nx

imports: syscalls.nxhmac_sha512.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main hkdf512_extract hmac_sha512 sha512_digest sha512_init sha512_update blk_set_byte blk_get_i64 blk_set_i64 sha512_compress blk_get_i64 ↻ sha512_gamma0 sha512_gamma1 sha512_sigma1 sha512_ch sha512_k sha512_sigma0 sha512_maj sha512_final blk_set_byte ↻ sha512_compress ↻ sha512_init ↻ sha512_update ↻ sha512_final ↻ hkdf512_expand hmac_sha512 ↻

structs

none

consts

14const HKDF512_HASH: i64 = 64
15const HKDF512_MAX_L: i64 = 16320

functions

17func hkdf512_extract(salt: *u8, salt_len: i64,
called by 1: main calls 1: hmac_sha512
31func hkdf512_expand(prk: *u8,
called by 1: main calls 1: hmac_sha512
73func main() -> i64 {