-
Notifications
You must be signed in to change notification settings - Fork 120
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
Move PQDSA to FIPS module #2032
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2032 +/- ##
==========================================
- Coverage 78.67% 78.67% -0.01%
==========================================
Files 598 598
Lines 103329 103347 +18
Branches 14685 14688 +3
==========================================
+ Hits 81298 81308 +10
- Misses 21380 21386 +6
- Partials 651 653 +2 ☔ View full report in Codecov by Sentry. |
crypto/CMakeLists.txt
Outdated
dilithium/pqdsa.c | ||
dilithium/p_pqdsa.c | ||
dilithium/p_pqdsa_asn1.c | ||
fipsmodule/pqdsa/pqdsa.c |
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.
these need to be added to bcm.c
that defines the code boundary of the fipsmodule. DILITHIUM_SOURCES
is not part of the fipsmodule.
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.
added in f4a5a75
o fix the CI issues related to ML-DSA we must move code that has dependencies on the fips delocator to the fipsmodule. This PR moves the files accordingly. I haven't moved the entirety of the dilithium directory (including filesml_dsa.c ml_dsa.h or p_pqdsa_test.cc) as there are still in-flight PRs for portions of this code. Once those changes are merged, I plan to create the directory ml_dsa in fipsmodule to store these files.
o fix the CI issues related to ML-DSA we must move code that has dependencies on the fips delocator to the fipsmodule. This PR moves the files accordingly. I haven't moved the entirety of the dilithium directory (including filesml_dsa.c ml_dsa.h or p_pqdsa_test.cc) as there are still in-flight PRs for portions of this code. Once those changes are merged, I plan to create the directory ml_dsa in fipsmodule to store these files.
Issues:
To fix the CI issues related to ML-DSA we must move code that has dependencies on the fips delocator to the fipsmodule.
This PR moves the files accordingly. I haven't moved the entirety of the
dilithium
directory (including filesml_dsa.c
ml_dsa.h
orp_pqdsa_test.cc
) as there are still in-flight PRs for portions of this code. Once those changes are merged, I plan to create the directoryml_dsa
infipsmodule
to store these files.Callouts:
With ML-DSA now in
bcm.c
we have namespacing issues, thus we change:keygen
sign
verify
ofpqdsa/internal.h
topqdsa_keygen
pqdsa_sign
pqdsa_verify
pqdsa_pkey_meth
asEVP_PKEY_pqdsa_pkey_meth
usingDEFINE_METHOD_FUNCTION
and the delocator. We remove all instances ofpqdsa_pkey_meth
.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.