nx_tls12_keys_test.nx
buildroot/runtime/nx_tls12_keys_test.nx
about
nx_tls12_keys_test.nx -- KAT for the TLS 1.2 key schedule (rung 3, no network).
Proves the wiring matches RFC 5246 by deriving each value via the rung-3 functions AND via a direct
nx_tls12_prf_sha256 call with the spec's label + seed order, then asserting equality. The PRF itself is
already RFC-KAT'd (nx_tls12_prf_test), so matching it == correct. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_tls12_keys.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
| 8 | func tk_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: tk_p |
| 9 | func tk_p(s: *u8) -> i64 { sys_write(1, s, tk_slen(s)); return 0 } |
| 10 | func tk_row(name: *u8, pass: i64) -> i64 |
| 15 | func tk_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 |
| 17 | func main() -> i64 |