Open
Conversation
This is a temporary solution until rust-openssl PRs merged Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Changes: - Add mldsa44_supported() backend method - Implement MlDsa44PrivateKey and MlDsa44PublicKey classes - Add Rust backend implementation with OpenSSL 3.5+ support - Add PKCS8/SPKI key parsing and serialization - Add comprehensive test suite - Add API documentation ML-DSA-44 provides NIST Level 2 post-quantum security with the smallest signature and key sizes of the ML-DSA family. Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Replace generic &pyo3::Bound<'_, pyo3::PyAny> with concrete crate::serialization::Encoding/PrivateFormat/PublicFormat types in private_bytes() and public_bytes() methods, consistent with how other key backends are implemented. Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Remove the unnecessary & reference when constructing MlDsa44PrivateKeyValue::Seed. Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Member
|
I had a cursory review, the Python API here looks pretty consistent with the one in #14404 which is good. The major differences look to be: a) whether context comes via a seperate method or as an arg to sign/verify (we landed on arg, rather than seperate method in the other PR), and the exact spelling of some serialization methods. This is a good sign and indicates that we're headed in the right direction. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm submitting first of ML-DSA branches for consideration of higher level API. All branches build up on each other, so ML-DSA-65 version is built on top of this one, and ML-DSA-87 is on top of ML-DSA-65 branch.
The branch is not supposed for merge but rather for discussing whether higher level API is what PyCA wants to see.
We have validated that with these patches we are able to enable FreeIPA to operate as ML-DSA CA.