code wiki / _hdl_build / nx_cms_setpw2.nx

nx_cms_setpw2.nx

buildroot/runtime/_hdl_build/nx_cms_setpw2.nx

2396 B66 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind tooltopic cms
docsdependenciesstructsconstsfunctions

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

nx_cms_pw.nx nx_secure_token.nx nx_cms_setpw2.nx

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

main sp2_w sp2_atoi st_hex128 sys_openat_rd sys_mmap sys_read sys_close cpw_write cpw_ctx_new sys_mmap ↻ sys_mmap ↻ cpw_derive sys_mmap ↻ nx_argon2id_hash _ar2_h0 _ar2_write_le32 nx_blake2b_hash nx_blake2b_init nx_blake2b_update nx_blake2b_final _ar2_block_at nx_blake2b_long _b2bl_write_le32 nx_blake2b_hash ↻ _b2bl_copy _ar2_gen_address_block _ar2_write_le64 nx_argon2_g _a2b_load_u64_le _a2b_p _a2b_store_u64_le _ar2_load_u64_le _ar2_map_index _ar2_lshr32 nx_argon2_g ↻ _ar2_block_xor_into _ar2_block_copy cpw_catnum sys_mmap ↻

structs

none

consts

9const SP2_M_DEFAULT: i64 = 32768
10const SP2_T_DEFAULT: i64 = 3

functions

12func 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
13func sp2_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
14func sp2_atoi(s: *u8) -> i64
called by 1: main
25func main(argc: i64, argv: *i64) -> i64