Uh oh!
There was an error while loading. Please reload this page.
ml-kem: Update to FIPS 203 - #47
Conversation
tarcieri
commented
Aug 16, 2024
At some point the documentation (README.md, Cargo.toml) should also be updated to note it's no longer the draft construction |
tarcieri
commented
Aug 16, 2024
bifurcation
commented
Aug 16, 2024
@tarcieri - docs and test vectors updated, think this is ready for review |
bifurcation
commented
Aug 16, 2024
I went a little more radical on the test vector refactor than I might have, but honestly (a) the first effort was kinda half-assed, and (b) this way if NIST updates the vectors, we can just pull JSON files and not have to copy/paste a bunch of hex strings. |
newpavlov
commented
Aug 16, 2024
The JSON files are quite big (831 KB and 558 KB). I think we should either exclude them (and respective tests) from published crates (e.g. see the |
bifurcation
commented
Aug 16, 2024
Good point @newpavlov, added those tests to the exclude list. |
Fixes#46
This PR implements the two changes noted in Appendix C of FIPS 203:
It turns out that we had already made the latter change in order to pass the existing test vectors.
Marking as WIP right now because I don't think updated test vectors have been published, and the current code fails on the current test vectors. Should be a quick copy/paste update once the test vectors are available.