test(mlkem_top): KeyGen verified vs NIST KAT count=0..4

Parameterized end-to-end TB (tb_mlkem_kg_katN, +CASE=n) loads d/z/ek/dk from
per-case hex files. All 5 cases pass byte-exact:
  ek == KAT pk (800B), dk == KAT sk (1632B), ~21350 cyc each.
Five independent seeds exercise distinct rejection-sampling paths.
Vectors derived from kat_MLKEM_512.rsp with sk-layout sanity checks
(sk = dk_pke || ek || H(ek) || z).
This commit is contained in:
2026-06-28 02:23:18 +08:00
parent 9824ed8f2c
commit 42d3748ab6
21 changed files with 12242 additions and 0 deletions

View File

@@ -0,0 +1 @@
d8a6e796ddac221affc15ef4e485b1f6c748a545b7cefc6ab65613797b3cf9a9