nx_tls13_transcript_snapkat_tamper_test.nx
buildroot/runtime/nx_tls13_transcript_snapkat_tamper_test.nx
about
nx_tls13_transcript_snapkat_tamper_test.nx -- NEGATIVE CONTROL for the
X-TLS-SNAPKAT-001 anti-regression KAT. Proves the KAT DISCRIMINATES:
under the OLD shallow-copy snapshot (the pre-BL-015 bug), continue-after-
snapshot DIVERGES from the one-shot at the lethal idx in {57..63}.
This file deliberately reintroduces the bug LOCALLY (shallow_snapshot:
flat 256-byte ctx copy that duplicates bufptr's pointer VALUE -> the clone
shares the live partial block; sha256_final clobbers it). It does NOT
touch the production organ. It asserts the bug is REPRODUCED (both lethal
cases diverge), so the real KAT's "must equal one-shot" assertion would
have gone RED. Pair it with nx_tls13_transcript_snapkat_test (GREEN on the
fixed organ) for pos+NEG discrimination.
expect_exit: 0 // 0 == both lethal cases diverged == gate discriminates
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_sha256.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
| 20 | func tnew() -> *u8 |
| 26 | func tupdate(st: *u8, msg: *u8, n: i64) -> i64 |
| 32 | func shallow_snapshot(st: *u8, out: *u8) -> i64 |
| 43 | func tfill(buf: *u8, n: i64) -> i64 called by 1: diverges |
| 54 | func diverges(s: i64, extra: i64) -> i64 |
| 80 | func main() -> i64 calls 1: diverges |