Skip to content
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

Minor changes to ML_DSA ACVP tests #2007

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abhinav-thales
Copy link
Contributor

This PR does the following:

  1. add checks for malloc() failures
  2. harden checks for random number length
  3. add log messages in case of failure

Also, tried enabling ML-DSA ACVP tests on Windows but run into "character too long" on DSA-87

Copy link
Member

@bhess bhess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the improvements @abhinav-thales! Just one suggestion above.

@@ -153,7 +153,7 @@ static OQS_STATUS sig_test_correctness(const char *method_name) {
rc = OQS_SIG_sign_with_ctx_str(sig, signature, &signature_len, message, message_len, ctx, 257, secret_key);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test could be changed to ctx_str_len=256 since only lengths up to 255 are supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants