noise-pq: add Noise_XXhfs_25519+ML-KEM-768_ChaChaPoly_SHA256 spec (Stage 1 Working Draft)#716
Open
paschal533 wants to merge 2 commits into
Open
noise-pq: add Noise_XXhfs_25519+ML-KEM-768_ChaChaPoly_SHA256 spec (Stage 1 Working Draft)#716paschal533 wants to merge 2 commits into
paschal533 wants to merge 2 commits into
Conversation
- Protocol name: Noise_XXhfs_25519+ML-KEM-768_ChaChaPoly_SHA256 - Protocol ID: /noise-mlkem768-hfs/0.1.0 - KEM: raw ML-KEM-768 (FIPS 203), removing X-Wing composite wrapper - Wire sizes: Msg A 1216 B, Msg B 1200 B (was 1248/1232 with X-Wing) - Add Rust reference impl (royzah/rust-libp2p PR libp2p#1) - Add triangle interop results (JS/Python/Rust -- 3/3 PASS, 2026-06-24)
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.
Summary
This PR adds a new protocol spec for
Noise_XXhfs_25519+ML-KEM-768_ChaChaPoly_SHA256, a post-quantum hybrid extension of the classical Noise XX handshake used in libp2p.Update (2026-06-24): The spec has been revised from an earlier X-Wing draft to use raw ML-KEM-768 (FIPS 203). The Noise XXhfs pattern already provides classical security through three independent DH operations (
ee,es,se), so using X-Wing (which bundles an extra X25519 inside the KEM) would be redundant — adding 64 bytes of wire overhead with no security benefit. Raw ML-KEM-768 gives the same hybrid security guarantee with a smaller footprint, and aligns with the Rust reference implementation royzah/rust-libp2p PR #1 (Rust).The spec is filed at Stage 1 (Working Draft) per the libp2p spec lifecycle.
e1andekem1HFS token extensions from the Noise HFS draft, applied to the existing Noise XX patternekem1slotMotivation
NIST finalized ML-KEM (FIPS 203) in August 2024. Harvest-now-decrypt-later attacks make forward secrecy the most urgent deployment target. The XXhfs pattern adds quantum-safe forward secrecy with no changes to the classical authentication layer, giving operators a safe incremental migration path.
Reference Implementations
Three independent implementations exist and have been validated against each other:
ml-kemcrate (RustCrypto)Triangle interoperability (2026-06-24)
All three implementations were tested pairwise over real TCP connections:
Test plan
encryptAndHashbeforemixKeyinekem1)