-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add MLDSA to fuzzing corpus #2174
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2174 +/- ##
=======================================
Coverage 79.02% 79.02%
=======================================
Files 612 612
Lines 106064 106064
Branches 14982 14984 +2
=======================================
+ Hits 83819 83820 +1
Misses 21592 21592
+ Partials 653 652 -1 ☔ View full report in Codecov by Sentry. |
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.
Verified new corpus resulted in a step up in pkcs8 block coverage.
Closed and picked up in #2191 |
Issues:
Resolves #PQCrypto-120
Description of changes:
This PR updates the fuzz tests to include seeds based upon ML-DSA private key encodings. I provided manual seeds to the corpus to fuzz specifically against private key import.
Seed1: ML-DSA-44 private key in seed representation:
Seed2 ML-DSA-65 private key in seed representation:
Seed3: ML-DSA-87 private key in seed representation:
Seed4: ML-DSA-44 private key in full representation:
Seed5: ML-DSA-65 private key in full representation:
Seed6: ML-DSA-87 private key in full representation:
Methodology:
./fuzz/pkcs8 -max_len=2048 -jobs=32 -workers=32 mldsa-seed/
./fuzz/pkcs8 -merge=1 min-corpus/ mldsa-seed/
./fuzz/pkcs8 -merge=1 merged/ min-corpus/ ../fuzz/pkcs8_corpus/
Call-outs:
Wasn't able to get a coverage report from https://github.com/aws/aws-lc/blob/main/docs/Coverage.md as
lcov
didn't want to play withclang
.We were at
231
fuzz vectors inpkcs8_corpus
and now we are at321
.Testing:
Testing coverage was tested by introducing an error (emulated #2152). These tests caught the error.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.