code wiki / _hdl_build / nx_secure_token.nx
nx_secure_token.nx
buildroot/runtime/_hdl_build/nx_secure_token.nx
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
imports: nx_syscalls.nx
imported by: nx_cms_admin.nxnx_cms_setpw2.nx
structs
| none |
consts
| none |
functions
| 7 | func st_hex128(out: *u8) -> i64 |
| 34 | func st_eq_ct(a: *u8, b: *u8, n: i64) -> i64 |