nx_mlkem_verify.nx
buildroot/runtime/nx_mlkem_verify.nx
about
nx_mlkem_verify.nx -- native harness that PROVES the real ML-KEM-768 (nx_ml_kem_768_wasm.nx)
works: keygen -> encaps -> decaps and assert the encaps/decaps shared secrets MATCH (its built-in
round-trip KAT returns 0 on success, a non-zero failure bitmap otherwise). This is the anti-liar
check: the sibling ml_kem_768.nx is a STUB (encaps/decaps just zero + return PENDING); the wasm
variant is the genuine implementation. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_ml_kem_768_wasm.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
| 9 | const K_MAGIC_131072: i64 = 131072 |
functions
| 11 | func mv_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 16 | func mv_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 18 | func main() -> i64 |