Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add post quantum key generation for ML DSA and ML KEM - #73

Open
quantova-inc wants to merge 1 commit into
hsbc:mainfrom
quantova-inc:add-post-quantum-key-generation
Open

quantova-inc wants to merge 1 commit into
hsbc:mainfrom
quantova-inc:add-post-quantum-key-generation

Conversation

@quantova-inc

Copy link
Copy Markdown

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.

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.

1 participant