ML-KEM key and ciphertext sizes

Short answer

ML-KEM-512: 800-byte public (encapsulation) key, 768-byte ciphertext.
ML-KEM-768: 1,184-byte public (encapsulation) key, 1,088-byte ciphertext.
ML-KEM-1024: 1,568-byte public (encapsulation) key, 1,568-byte ciphertext. The shared secret is always 32 bytes.

The hybrid TLS key share X25519MLKEM768 is 1,216 bytes from the client and 1,120 bytes from the server, against 32 bytes for X25519 alone.

Raw sizes (FIPS 203)

Parameter setSecurityEncapsulation keyDecapsulation keyCiphertextShared secret
ML-KEM-512NIST level 18001,63276832
ML-KEM-768NIST level 31,1842,4001,08832
ML-KEM-1024NIST level 51,5683,1681,56832
X25519classical323232 (peer key)32

Bytes. The decapsulation key is the expanded FIPS 203 encoding; implementations may store a 64-byte seed instead.

Hybrid key exchange in TLS: X25519MLKEM768

Browsers and TLS libraries deploy ML-KEM as a hybrid with X25519, so a connection stays secure if either algorithm holds. Each side's key share concatenates both:

Key shareML-KEM-768 partX25519 partTotalvs. X25519 alone
Client (ClientHello)1,184 (encapsulation key)321,21638×
Server (ServerHello)1,088 (ciphertext)321,12035×

That pushes a typical ClientHello past 1,200 bytes. It no longer fits in a single QUIC Initial packet, and on many paths it no longer fits in one TCP segment either. Middleboxes and servers that assumed a ClientHello arrives in one packet have broken when browsers enabled hybrid key exchange. Test your load balancers, WAFs and TLS-terminating proxies before you rely on it.

Storing ML-KEM keys

Parameter setBase64 public keyColumnBase64 ciphertextColumn
ML-KEM-5121,068VARCHAR(2048)1,024VARCHAR(2048)
ML-KEM-7681,580VARCHAR(2048)1,452VARCHAR(2048)
ML-KEM-10242,092VARCHAR(4096)2,092VARCHAR(4096)

Column sizes use Tokenkeep's policy: Base64 length +25%, rounded up to a power of two.

Find every limit these sizes break in your stack

Paste a migration, an nginx.conf or an mbedTLS header into the checker, or ask us for a free scan of the whole repository.

Related