-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test Improvements for ML-KEM #1947
Conversation
Signed-off-by: Abhinav Saxena <[email protected]>
cdaf44d
to
e08e63c
Compare
Signed-off-by: Abhinav Saxena <[email protected]>
Signed-off-by: Abhinav Saxena <[email protected]>
3f481cd
to
2d281a5
Compare
Signed-off-by: Abhinav Saxena <[email protected]>
Signed-off-by: Abhinav Saxena <[email protected]>
b370829
to
47a94ff
Compare
Not sure if you're working on Windows @abhinav-thales, but this script might be helpful to get past the formatting check. |
Signed-off-by: Abhinav Saxena <[email protected]>
758619a
to
43d5a3a
Compare
@abhinav-thales I triggered CI on the latest commit; please see the minor build failures. |
Signed-off-by: Abhinav Saxena <[email protected]>
Signed-off-by: Abhinav Saxena <[email protected]>
Signed-off-by: Abhinav Saxena <[email protected]>
Signed-off-by: Abhinav Saxena <[email protected]>
Signed-off-by: Abhinav Saxena <[email protected]>
Signed-off-by: Abhinav Saxena <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this additional test @abhinav-thales !
See the to comments in the code.
The new test is specific to ML-KEM while the existing tests apply to all KEMs. I think it would make sense to structure the code a bit differently, for example moving the new test to separate function.
Signed-off-by: Abhinav Saxena <[email protected]>
Thank you @bhess for the review. Have moved the added testcase to a separate function now. |
Signed-off-by: Abhinav Saxena <[email protected]>
Thanks for the updates! One more general comment about the test: |
Signed-off-by: Abhinav Saxena <[email protected]>
added the testcase now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @abhinav-thales for adding the additional test! Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, @abhinav-thales . Please see the single comments and mark/#ifdef explicitly the algorithm-specific code, e.g., using OQS_ENABLE_KEM_ML_KEM
, to allow the system to keep its (admittedly only internal) differentiation in generalized and algorithm-specific code.
Signed-off-by: Abhinav Saxena <[email protected]>
Hi @baentsch , thanks for the review. The ML-KEM tests are now under conditional check of ML-KEM configuration. |
Hi @SWilson4 , can you trigger the workflow on the latest commit as well please ? |
Signed-off-by: Abhinav Saxena <[email protected]>
Looks good to me. Thanks for making the requested changes! |
Hi @baentsch , If the changes meet your expectations, could you please approve them? If there are any additional adjustments needed, kindly let me know. Thank you ! |
Thanks for re-requesting review @abhinav-thales : I was under the mistaken assumption that by marking all comments resolved things turn green, sorry. Now explicitly marked so. Thanks on behalf of the FOSS community for your contributions to improve the library for everyone! |
This PR does the following:
- enable ML-KEM ACVP tests on Windows
Since ML-KEM final specification is released, it would be good to have the tests enabled on Windows
- testcases for ML-KEM rejection key
Add negative testcase as per Algorithm 18 of ML-KEM final specification when the calculated encrypted text does not match the passed ciphertext
- harden checks in vector_kem for RNG lengths and correct error message in decaps