code wiki / _hdl_build / nx_chacha_block_dump.nx
nx_chacha_block_dump.nx
buildroot/runtime/_hdl_build/nx_chacha_block_dump.nx
about
nx_chacha_block_dump.nx -- ground-truth oracle for the SIMD ChaCha rung. Inlines the scalar ChaCha20
block (RFC 8439 ยง2.3.2 input: key=0..31, nonce=00 00 00 09 00 00 00 4a 00 00 00 00, counter=1) and
prints the 64 keystream bytes as decimals. The SIMD ChaCha must reproduce THIS exactly (SIMD==scalar
== the KAT'd-correct oracle). No hallucinated vectors. license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| none |
functions
| 7 | func u32(x: i64) -> i64 { return x & 0xFFFFFFFF } |
| 8 | func rotl32(x: i64, r: i64) -> i64 { let a: i64 = (x << r) & 0xFFFFFFFF; let b: i64 = (x & 0xFFFFFFFF) >> (32 - r); return a | b } called by 1: qr |
| 10 | func qr(s: *i64, a: i64, b: i64, c: i64, d: i64) -> i64 |
| 18 | func pn(v: i64) -> i64 |
| 26 | func main() -> i64 |