Repository navigation
Post-quantum crypto algorithms - #342
Merged
Merged
Conversation
Extract BC's client-side SNTRUP implementation behind internal adapters and support both RFC 9941 algorithm names. Track published upstream sources with Renovate and verify original and extracted SHA-256 hashes in CI.
Implement RFC 10042 ML-KEM-768/P-256 and ML-KEM-1024/P-384 using the bundled Kotlin ML-KEM implementation and JCA ECDH. Validate fixed-width secrets and peer points, and erase ephemeral secret buffers.
Use installed JCA composite services for ssh-mldsa87-p384, with provider-gated defaults and PEM private-key support. Add Kaitai definitions for SSH point and scalar encodings and independently verify both signature components. Document draft encoding inconsistencies.
Implement mlkem768-sha256 and mlkem1024-sha384 with existing JVM and Android providers, keeping both disabled by default. Encode the 32-byte secret as an SSH string, matching the draft exchange-hash definition and CycloneSSH, and document the draft's conflicting mpint wording. Add independent BC interoperability, authentication and rekey conformance, malformed-ciphertext and cleanup checks.
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.
Add multiple post-quantum crypto algorithms:
Key Exchange
mlkem768nistp256-sha256(RFC 10042 section 2.3.1)mlkem1024nistp384-sha384(RFC 10042 section 2.3.2)mlkem768-sha256(pure ML-KEM draft) — opt-inmlkem1024-sha384(pure ML-KEM draft) — opt-insntrup761x25519-sha512(RFC 9941)sntrup761x25519-sha512@openssh.com(the interoperable OpenSSH alias from RFC 9941)Host keys
ssh-mldsa87-p384(SSH composite signatures draft) — requires platform support