Repository navigation
Add post quantum key generation for ML DSA and ML KEM - #73
Open
quantova-inc wants to merge 1 commit into
Open
quantova-inc wants to merge 1 commit into
quantova-inc wants to merge 1 commit into
Conversation
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.
This adds post quantum key generation alongside the existing RSA path so teams preparing for the quantum migration can produce the key material they need from the same tool.
It adds an ML-DSA-65 generator from FIPS 204 for settlement signing and document signing, an ML-KEM-768 generator from FIPS 203 for key establishment, and an algorithm flag on the command line with rsa as the default. The change is additive and does not alter the RSA behaviour. Running with no arguments produces the same output as before. The new private keys are written with owner only permissions and are never printed to the console or the debug log. Only the public key and the private key path are shown.
Post quantum generation uses the native support in the cryptography library from version 47 built against OpenSSL 3.5. On an older build the tool reports that the algorithm is not available and the RSA path keeps working so nothing breaks for existing installs. Tests cover generation and the private key file mode and an ML-DSA sign and verify roundtrip and they skip when the backend does not provide the algorithms so the pinned matrix stays green.
As evidence for the settlement case we published an open benchmark that measures these signatures on settlement size payloads at https://github.com/quantova-inc/quantova-pqsettle-bench. ML-DSA verification runs well under a millisecond which is faster than RSA at the same security target.