code wiki / _hdl_build / nx_cms_setpw2.nx
nx_cms_setpw2.nx
buildroot/runtime/_hdl_build/nx_cms_setpw2.nx
about
nx_cms_setpw2.nx -- CMS C10 operator tool: set a site's admin password as a self-describing
argon2id credential (admin_pw.ar2). Supersedes nx_cms_setpw (sha256 file = legacy migration
fallback only; the daemon always prefers .ar2). argv: <sitedir> <password> [m_kib] [t] --
defaults = the vault's measured production params (m=32768 t=3 ~ 1.8s/verify on this box).
Salt = 32 hex chars from urandom (st_hex128), stored in the file. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_cms_pw.nxnx_secure_token.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
| 9 | const SP2_M_DEFAULT: i64 = 32768 |
| 10 | const SP2_T_DEFAULT: i64 = 3 |
functions
| 12 | func sp2_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } called by 1: main |
| 13 | func sp2_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 14 | func sp2_atoi(s: *u8) -> i64 called by 1: main |
| 25 | func main(argc: i64, argv: *i64) -> i64 |