mlkem_top now sizes storage for KMAX=4 (worst case) and selects the active ML-KEM parameter set at start_i via the k_i input. All K-derived quantities (eta1, slot bases, ek/dk byte counts, H(ek) block count, FSM bounds) are computed at runtime from the captured k_r. Verified byte-exact against NIST KAT for all three parameter sets: K=2 (512) cases 0-4, K=3 (768) cases 0-2, K=4 (1024) cases 0-2 -> 11/11 PASS (ek==pk, dk==sk).
28 KiB
28 KiB