Pick a scheme to read its packet verdict below. The bars measure the signature alone; a real JWT or TLS certificate also carries the public key, names, and validity dates on top.
The packet game: fit the signature in one packetML-DSA-65: 3,309-byte signature does not fit. It needs 3 packets (226% of one packet's 1,464-byte payload).
FIPS 204 Table 2; public key 1,952 bytes. Status: FIPS/RFC table value.
The ClientHello wire viewRFC 10024 registers X25519MLKEM768 as group 4588 and obsoletes the pre-standard Kyber code points (X25519Kyber768Draft00, 25497; SecP256r1Kyber768Draft00, 25498).
Two locks: hybrid key exchange made interactiveBoth locks hold. The session key derives from both shared secrets, so neither failure has happened.
The RFC 10024 sentence this models: hybrid key exchange provides “security as long as at least one of the component algorithms remains secure, even if the others are compromised.”
SIGNATURE SIZES · PACKET FIT · HYBRID WIRE
Sizes and handshakes
Signature sizes against a single TCP packet, the fit-or-fragment game, the RFC 10024 hybrid ClientHello on the wire, and the two-locks property made interactive. Depth section: KEM mechanics and ML-DSA signing at implementation-concept level. Runs in your browser.
The transition’s two halves measure differently. Key establishment costs about 1.2 kilobytes per direction (ML-KEM-768’s 1,184-byte public key and 1,088-byte ciphertext), and it is already the browser default. Authentication costs 2,420 bytes minimum per ML-DSA signature against Ed25519’s 64, and it has not moved. The bars above draw both halves to scale against the container that constrains them: one TCP packet’s 1,464-byte payload (1,500-byte Ethernet MTU minus a 20-byte IPv4 header and a 16-byte TCP header).
Signatures, containers, and provenance labels
- The bars weigh the signature alone. A real JWT carries its signature after the third dot-separated part; a real TLS certificate carries the signature plus the public key, subject names, and validity dates; certificate chains multiply all of it. The packet game’s verdict is therefore a floor, not a total.
- Confidence labels are visible per scheme: ML-DSA, SLH-DSA, and Ed25519 values are FIPS or RFC table values (cross-checked in mlkem-native and liboqs); ECDSA P-256 is about 64 bytes raw (70-72 DER-encoded); Falcon-512’s roughly 666 bytes is single-source, quoting a tracker that cites an NIST presentation, and FN-DSA itself has no draft.
- SLH-DSA-128s (7,856 bytes) is the small, slow endpoint of FIPS 205’s range; the fast 128f variant signs quicker at 17,088 bytes. The range’s other endpoint (49,856 bytes) belongs to the 256f set. Mid-range table values are not plotted because they were not re-verified against the FIPS 205 table.
- The wire view and the two-locks diagram use only RFC 10024 numbers: group 4588, 1,216-byte client share (1,184 + 32), 1,120-byte server share (1,088 + 32), 64-byte combined secret.
Inside ML-KEM: noisy linear equations and the re-encrypt-and-check step
ML-KEM’s security rests on the Learning With Errors problem. The public key embeds a system of linear equations over a polynomial ring: roughly, t = A·s + e, where A is a public random matrix, s is the secret, and e is small random noise, all modulo q = 3,329. Without the noise, linear algebra would solve for s immediately. With it, every equation is only an approximation of a line through the secret, and no combination cancels the noise cleanly. The attacker’s job is to solve noisy linear equations, and the noise is the security.
The ring is why the keys stay small. Entries are polynomials modulo X256 + 1, so a “vector element” is 256 coefficients and multiplication wraps around the ring; the Number Theoretic Transform makes that multiplication fast. All three ML-KEM parameter sets share the ring (n = 256, q = 3,329) and differ only in the module rank k (2, 3, 4), the stack of ring elements: bigger rank, bigger keys, more security.
Encapsulation hides a random seed under that noisy system. Decapsulation must recover itexactly, and tampering must fail loudly: the Fujisaki-Okamoto transform re-runs the encapsulation inside decapsulation and checks that re-encrypting the recovered seed reproduces the ciphertext it received. A mismatch aborts. That re-encrypt-and-check step converts a merely hard problem into one safe against active attackers (IND-CCA2), and it is the same idea the TLS layer relies on when it aborts on an encapsulation-key check failure.
Inside ML-DSA: masking, a challenge hash, and rejection sampling
ML-DSA’s public key is (A, t) with t = A·s1 + s2; the private key is the pair (s1, s2). To sign, the signer picks a random masking vector y, computes w = A·y, and hashes the message with w to get the challenge c. The response is z = y + c·s1.
The catch is that z must not leak s1, and z = y + c·s1 leaks whenever the secret term pushes it outside the distribution y was drawn from. The signer therefore bounds-checks z, and on failure aborts and retries with a fresh y. This is rejection sampling, and it is why the scheme’s full name is Fiat-Shamir-with-abort: attempts succeed within a few tries on average. Read as a proof, the signature demonstrates knowledge of s1, with s2 hiding in the noise, made non-interactive by the challenge hash.
Verification runs the same algebra in reverse: recompute w′ = A·z − c·t, where the s1 terms cancel, and accept when H(M || w′) equals c and the bounds hold. The small s2 contribution that remains is absorbed by the rounding ML-DSA applies to w, the same rounding the signer used when hashing. The size problem from the bars above is the price of shipping those wide vectors on the wire.
The standards guide explains what these algorithms standardize, why NIST picked several math families, what CNSA 2.0 requires by its five dates, and why the sizes in the bars, not the mathematics, are what break certificate chains, code signing, and middleboxes. The guide’s verify section links every primary this page’s labels cite.