ClientHello
The client opens the connection. It proposes TLS 1.3, offers three AES/ChaCha cipher suites, lists the key-exchange groups it supports with X25519MLKEM768 first, and sends a key share for each of its two preferred groups — including the 1216-byte hybrid share. It travels in the clear; nothing is secret yet.
On the wire · 1,483 bytes
- The 1,478 bytes match what OpenSSL printed for this record with -msg.
How it is computedThe client's key shares
Before it says a word, the client generates the ephemeral keys it will offer. For the hybrid group that is an ML-KEM-768 key pair plus an X25519 key pair, concatenated public-first into one 1216-byte share; the standalone X25519 group gets its own, separate key.
Definition
d, z ←$ B^32 FIPS 203 §7.1 (ek, dk) = ML-KEM-768.KeyGen_internal(d, z) FIPS 203 §6.1 x_c ←$ B^32, X_c = X25519(x_c, 9) RFC 7748 §5 share = ek ‖ X_c 1184 + 32 = 1216 RFC 10024 §4.1 y_c ←$ B^32, Y_c = X25519(y_c, 9) key_share: x25519 (0x001d)
Values from this session
- d (32 bytes) — expands into the secret vector
- 84745c7adf177dfb94e15c7cdef6f8006897b295bdafaadd090ef050c004b212
- z (32 bytes) — the implicit-rejection secret
- 921eb10b6b41e8f0221e0f7f164aadef44f4cba1139edd522c9f0860db6b0cde
- SHA-256 of the 1184-byte encapsulation key
- 4a2903bee32a7a18d3294d93a4d24d6ecc8c07bc098bab31899689f87a572be8
- client X25519 private key (hybrid share)
- 784edfa4400a57540a7cbd71957c8ab182ae801a5c519755abe69f553b9e8c5d
- client X25519 public key (hybrid share)
- 09e0802926363ed192b02f5261520f2056ba7af9a0acd1eee5bbe50181e0cf29
- client X25519 private key (standalone share)
- d81df8305a5f24f9077b3d669885d0d7b93ec55fe405ccde814bac62e778f656
- client X25519 public key (standalone share)
- 67aab4deeec206fa89034014d772bdd47cedd7930610e81f634871565424f14d
What this proves
- ML-KEM-768 key generation from the seed reproduces the encapsulation key in the client's share.
- All 768 coefficients of the encapsulation key are below q = 3329 (largest 3326), so the server accepts it (FIPS 203 §7.2).
- The X25519 private key reproduces the public value in the client's hybrid share.
- The standalone X25519 share uses its own key, different from the one in the hybrid share.
Reproduce it yourself
printf '%s' 3054020100300b06096086480165030404020442804084745c7adf177dfb94e15c7cdef6f8006897b295bdafaadd090ef050c004b212921eb10b6b41e8f0221e0f7f164aadef44f4cba1139edd522c9f0860db6b0cde | unhex > client-mlkem.der openssl pkey -inform DER -in client-mlkem.der -pubout -outform DER | tail -c 1184 | openssl dgst -sha256 -binary | tohex
prints 4a2903bee32a7a18d3294d93a4d24d6ecc8c07bc098bab31899689f87a572be8
printf '%s' 302e020100300506032b656e04220420784edfa4400a57540a7cbd71957c8ab182ae801a5c519755abe69f553b9e8c5d | unhex > x25519.der openssl pkey -inform DER -in x25519.der -pubout -outform DER | tail -c 32 | tohex
prints 09e0802926363ed192b02f5261520f2056ba7af9a0acd1eee5bbe50181e0cf29