code wiki / _hdl_build / nx_sha256_native_kat_gate.nx

nx_sha256_native_kat_gate.nx

buildroot/runtime/_hdl_build/nx_sha256_native_kat_gate.nx

2297 B40 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic sha256
docsdependenciesstructsconstsfunctions

about

nx_sha256_native_kat_gate.nx -- DISTINGUISHING test for task #21: run nx_sha256_one_shot NATIVELY (x86, no wasm, no VM) on "abc" and check the FIPS 180-4 KAT. If this PASSES, the algorithm in nx_sha256_wasm.nx is correct and the wrong digest seen via nx_wasm_vm is a wasm-compile or VM-execution issue. If it FAILS, the algorithm itself is buggy.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_sha256_wasm.nx nx_gate_verdict.nx nx_sha256_native_kat_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_sha256_wasm.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write sys_mmap nx_sha256_one_shot _h_set _sha256_compress _blk_word_be _rotr32 _h_get _sha256_k _h_set ↻ _h_get ↻ g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ gv_ctr sys_mmap ↻ gv_verdict gv_puts sys_write ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gv_cat sys_write ↻ sys_close sys_munmap ↻

structs

none

consts

none

functions

9func main() -> i64