feat(noise): hybrid post-quantum handshake (X25519 + ML-KEM-768)#6481
Draft
royzah wants to merge 2 commits into
Draft
feat(noise): hybrid post-quantum handshake (X25519 + ML-KEM-768)#6481royzah wants to merge 2 commits into
royzah wants to merge 2 commits into
Conversation
Adds an additive, off-by-default 'mlkem-hfs' feature advertising Noise_XXhfs_25519+ML-KEM-768_ChaChaPoly_SHA256 under a new protocol id, falling back to classical /noise for older peers. Ports the crate to snow 0.10 (patched to our fork carrying the ML-KEM KEM) and widens the handshake scratch buffer for the KEM material.
5cd4da1 to
a8c5bcf
Compare
Author
|
Note on the
|
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.
Revives #2168.
Summary
Additive, off-by-default
mlkem-hfsfeature: a hybrid post-quantum Noise handshake (Noise_XXhfs_25519+ML-KEM-768_ChaChaPoly_SHA256) negotiated alongside/noise, falling back to classical X25519 for peers without it.Why
/noiseis classical X25519, so recorded sessions are exposed to harvest-now-decrypt-later. This mixes an ML-KEM-768 ephemeral KEM into the handshake (secure if either primitive holds). Static-key auth stays classical, which cannot be broken retroactively.Changes
mlkem-hfsfeature (off by default) ->snow/use-ml-kem/noise-mlkem768-hfs/0.1.0, advertised ahead of/noise; pattern selected from the negotiated idDefaultResolver(ring has no KEM)Open questions
/noise-mlkem768-hfs/0.1.0is provisional; it needs a cross-implementation spec (go/js-libp2p) before stabilizing. Happy to take it to libp2p/specs.snow; until released,[patch]points snow at a fork branch.ml-kemis unaudited (passes NIST vectors).