code wiki / (root) / nx_argon2id_h0_bisect.nx

nx_argon2id_h0_bisect.nx

buildroot/runtime/nx_argon2id_h0_bisect.nx

3842 B95 linesdepth 3pulls 7 transitivereach 0 importersview sourcekind tooltopic argon2id
docsdependenciesstructsconstsfunctions

about

nx_argon2id_h0_bisect.nx -- bisect step 1: verify H_0 derivation. expect_exit: 0 Expected H_0 (computed via Python hashlib.blake2b on the canonical Argon2id input encoding for p=1, tau=32, m=8, t=2, v=0x13, type=2, P="password", S="somesalt", K="", X=""): 59556a60dc1ea400 147c690b0586a019 64ed18cbeab745e4 3883420776d44d52 e11b9ef6b4069027 ea0c81916dde0193 dedf27beffd45609 bbe53d4095df0f21 If this PASSES, H_0 wiring is correct and the bug is downstream (B[0]/B[1] derivation, fill loop, or final tag). license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls_x86_64.nx nx_blake2b.nx nx_argon2_block.nx nx_argon2id.nx nx_argon2id_h0_bisect.nx

imports: nx_syscalls_x86_64.nxnx_blake2b.nxnx_argon2_block.nxnx_argon2id.nx

imported by: nobody (leaf or entry point)

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

main make_ctx write_expected_h0 _ar2_h0 _ar2_write_le32 nx_blake2b_hash nx_blake2b_init _b2b_iv nx_blake2b_update _b2b_compress _b2b_load_u64_le _b2b_iv ↻ _b2b_mix _b2b_rotr64 _b2b_sigma nx_blake2b_final _b2b_compress ↻ _b2b_store_u64_le _b2b_shr64 _b2b_shr64 ↻

structs

none

consts

21const K_MAGIC_1024: i64 = 1024
22const K_MAGIC_2048: i64 = 2048

functions

24func make_ctx() -> *NxArgon2idCtx
called by 1: main
48func write_expected_h0(out: *u8) -> i64
called by 1: main
76func main() -> i64