nx_tls12_record_test.nx
buildroot/runtime/nx_tls12_record_test.nx
about
nx_tls12_record_test.nx -- KAT for the TLS 1.2 AES-128-GCM record layer (rung 4, no network).
Round-trips a 32-byte application_data record (seal -> open -> recovered == original) and proves the AEAD
tag rejects tampering (flip one ciphertext byte -> open fails). license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_tls12_record.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 rt_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: rt_p |
| 8 | func rt_p(s: *u8) -> i64 { sys_write(1, s, rt_slen(s)); return 0 } |
| 9 | func rt_row(name: *u8, pass: i64) -> i64 |
| 14 | func rt_eq(a: *u8, b: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { if a[i] != b[i] { return 0 } i = i + 1 } return 1 } called by 1: main |
| 16 | func main() -> i64 |