This adds KAT tests to kyber_test.py. I found that the tests failed because kyber.py uses shake128 for KDF. So this PR also aligns kyber.py with the spec's use of shake256.
The contents of nistkat.py were produced by applying the following patch to PQCgenKAT_kem.c.
This adds KAT tests to kyber_test.py. I found that the tests failed because kyber.py uses shake128 for
KDF
. So this PR also aligns kyber.py with the spec's use of shake256.The contents of
nistkat.py
were produced by applying the following patch to PQCgenKAT_kem.c.