On the Necessity of Public Contexts in Hybrid KEMs: A Case Study of X-Wing
Shows that hybrid KEM KDFs need ciphertext binding and recipient-key context, analyzing X-Wing (ML-KEM plus X25519) and ECDH APIs like P-256 that export partial point data.
Schemes: X-Wing, ML-KEM, X25519, P-256, Ristretto255, HPKE DHKEM
Findings (quotes checked against the source text)
-
Distinct classical ciphertexts can yield the same shared secret under X-Wing's deployed raw-output interface, motivating hashing of the classical ciphertext in the outer KDF.
Under the deployed raw-output interface, we show how distinct classical ciphertexts can yield the same shared secret, motivating hashing of the classical ciphertext in the outer KDF and clarifying when recipient public-key context is needed in multi-target deployments.
-
Optimized combiners may omit large public inputs from the final KDF only if the derived key stays bound to the ciphertext transcript and, in multi-target settings, to the recipient.
Prior work shows that optimized combiners may omit large public inputs from the final key-derivation step, but only if the derived key remains bound to the ciphertext transcript and, in multi-target settings, to the intended recipient; otherwise ciphertext manipulation and cross-recipient amortization at the KDF layer can increase an adversary’s concrete advantage.
-
Similar ciphertext-binding issues arise in other widely deployed ECDH APIs, including P-256, when they export only partial point information.
We also show that similar issues arise for other widely deployed elliptic-curve Diffie–Hellman (ECDH) APIs, including P-256, when they export only partial point information.
-
Ciphertext hashing can be omitted for canonical prime-order abstractions such as Ristretto255 and for HPKE DHKEM profiles that internalize transcript context.
Finally, we summarize when ciphertext hashing can be omitted, including canonical prime-order abstractions such as Ristretto255 and designs that internalize transcript context via per-component hashing, as in HPKE Diffie–Hellman-based KEM (DHKEM) profiles.
For builders
If a hybrid KEM uses a raw ECDH output, hash the classical ciphertext and recipient public key into the outer KDF rather than deriving the key from the shared secret alone.
Limits
Based on the ePrint abstract only; full text was not read. No concrete numeric results are given in the abstract.
Topics: kem hybrid-schemes hash-functions cryptanalysis standards-policy