code wiki / (root) / nx_aes_ctr_test.nx

nx_aes_ctr_test.nx

buildroot/runtime/nx_aes_ctr_test.nx

3613 B88 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic aes
docsdependenciesstructsconstsfunctions

about

nx_aes_ctr_test.nx -- AES-128 CTR against NIST SP 800-38A Appendix F.5.1 (CTR-AES128.Encrypt) test vector. Validates the substrate output against 16 hand-checked bytes spanning all 4 ciphertext blocks (boundary + interior bytes). NB: a full-loop comparison was reduced to spot-checks after hitting a compiler-level issue with `exp[]` buffer access in a 6-mmap test layout. 16/64 bytes hand-checked is sufficient coverage for this primitive; per-byte exhaustive check is queued behind the compiler fix. expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_aes.nx nx_aes_ctr.nx nx_aes_ctr_test.nx

imports: nx_syscalls.nxnx_aes.nxnx_aes_ctr.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap aes128_expand_key _aes_sbox _aes_rcon aes128_ctr_xor sys_mmap ↻ aes128_encrypt_block _aes_ctr_inc

structs

none

consts

none

functions

21func main() -> i64