nx_shani_block_probe.nx
buildroot/runtime/nx_shani_block_probe.nx
about
nx_shani_block_probe.nx -- BLOCK-LEVEL oracle probe for the SHA-NI intrinsic.
Validates __sha256_ni_block (hardware SHA extension) against the software
sha256_compress on the SAME single 64-byte block, for several blocks. This is the
bit-exact correctness gate that must pass BEFORE the mainline sha256_compress is
routed through the intrinsic. Software path is the ORACLE.
exit 0 = every block's NI result matches the software result word-for-word.
nonzero = first mismatch (encodes which block / which word).
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_sha256.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
| 16 | const K_MAGIC_1103515245: i64 = 1103515245 |
| 17 | const K_MAGIC_12345: i64 = 12345 |
functions
| 24 | func sw_block(block: *u8, out8: *i64) -> i64 |
| 38 | func build_k32(k32: *i32) -> i64 |
| 45 | func ni_block(block: *u8, k32: *i32, out8: *i64) -> i64 |
| 60 | func check_block(block: *u8, k32: *i32, tag: i64) -> i64 |
| 75 | func main() -> i64 |