Cross-checks the hardware KAT vectors against the ml-kem-r Rust reference's NIST .rsp files, accounting for the d/z byte-order convention: the hardware hashes G(reverse(d)||K), so its vector files store d/z reversed vs the NIST .rsp. The script applies that reversal for d/z and compares ek==pk, dk==sk directly; 11/11 cases consistent. ml-kem-r path via $ML_KEM_R (default ~/Dev/ml-kem-r); friendly errors on missing files. Documents the convention that tripped up logging.rs (which pasted hardware-order d into the literal-order Rust reference).
4.2 KiB
Executable File
4.2 KiB
Executable File