Repository navigation
Conversation
Owner
|
Hah were you looking at #91 ... |
Contributor
Author
I did not see until you mentioned! I have been scrambling with this in a lot of software for the last two days or so. |
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 PR adds the
ssh-mldsa44-ed25519hybrid post-quantum signature algorithm (ML-DSA-44 + Ed25519) from draft-ietf-sshm-composite-sigs and themldsafeature.mldsa44-ed25519is supported by OpenSSH 10.6+Currently,
sunsethas PQ key exchange but only classical host/user keys.src/mldsa.rsbuilds M' (prefix, label, empty context, SHA-512 of the message) and signs it with ML-DSA-44 (context = label) and Ed25519. Both signatures must verifyPubKey,Signature,SignKey(including an agent variant),KeyTypeandSigTypegetMLDSA44Ed25519variantsml-dsaisno_stdand doesn't needalloc, but its README notes it hasn't been independently auditedssh-mldsa44-ed25519goes last in the host key algorithm list, matching OpenSSH 10.6's default order, and is included inserver-sig-algsssh-keyto rc.13 for OpenSSH private keys and fingerprintssha2optional and gatesfingerprint()on it, soopenssh-keynow enablesssh-key/sha2I added tests that derive the draft's example key from its seeds and check it against the draft's SSHFP fingerprint, cross-check the key against
ssh-key's implementation through the OpenSSH private key format, and check that tampering with either signature half fails.I also locally tested against OpenSSH 10.6p2 in both directions with ML-DSA host/user keys over
mlkem768x25519-sha256A server with only an ML-DSA host key needs #93 - without it, the server still advertises
ssh-ed25519and clients pick that.