code wiki / _hdl_build / nx_secure_token.nx

nx_secure_token.nx

buildroot/runtime/_hdl_build/nx_secure_token.nx

1431 B45 linesdepth 2pulls 2 transitivereach 4 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_secure_token.nx -- CMS ladder step 3: secure tokens. 128-bit CSPRNG hex straight from /dev/urandom (L0 HAVE per the layered spec) for session ids + CSRF synchronizer tokens, plus a CONSTANT-TIME comparator (no early-exit timing oracle on token checks). license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_secure_token.nx nx_cms_admin.nx nx_cms_setpw2.nx

imports: nx_syscalls.nx

imported by: nx_cms_admin.nxnx_cms_setpw2.nx

structs

none

consts

none

functions

7func st_hex128(out: *u8) -> i64
34func st_eq_ct(a: *u8, b: *u8, n: i64) -> i64