code wiki / (root) / nx_mfa_gate.nx

nx_mfa_gate.nx

buildroot/runtime/nx_mfa_gate.nx

3150 B45 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_mfa_gate.nx -- KAT for admin MFA. Proves the TOTP-SHA1 core against the RFC 6238 Appendix B official test vectors (the non-novel-standard 3rd-party proof), the base32 secret round-trip, and mfa_verify's skew-window logic (accept current + adjacent step, reject wrong code / out-of-window / wrong length). exit 0 = pass, N = assertion N failed.

dependencies 2 imports · 0 importers

nx_mfa.nx nx_assert.nx nx_mfa_gate.nx

imports: nx_mfa.nxnx_assert.nx

imported by: nobody (leaf or entry point)

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

main totp_sha1_value hotp_sha1_value sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ hmac_sha1 sys_mmap ↻ sha1 sys_mmap ↻ sha1_process_block if_ge totp_sha1_render hotp_sha1_value ↻ nx_puts_err sys_write ↻ mfa_verify sys_mmap ↻ base32_decode sys_mmap ↻ b32_dec_val hotp_sha1_value ↻ totp_sha1_render ↻ mfa_ct_eq mfa_enrolled

structs

none

consts

none

functions

8func main() -> i64