KEM–DEM hybrid encryption #
A key encapsulation mechanism E : KEM PK SK CT K and a symmetric cipher D : Cipher K M C on
its keys combine into the public-key encryption scheme E.hybrid D : PKE PK SK M (CT × C)
([BS23], Exercise 11.9(a)): encryption encapsulates a key and encrypts the message under
it with D, and decryption decapsulates the key and decrypts. KEM.hybrid_correct states that
the hybrid is correct when both components are.
Chosen-plaintext security of the hybrid reduces to security of the KEM and one-time security of
the cipher. These are the concrete bounds for a corrected form of Exercise 11.9(b): the KEM
experiment KEM.cpaExperiment gives the distinguisher the public key, which the exercise's printed
KEM game does not, and under the printed game part (b) is false (Encryption.KEMINDCPA gives a
counterexample). Fix a sampler sampleKey for the random KEM key, which is also the
key distribution of the one-time cipher experiment. For every two-stage adversary A against the
hybrid and every admissibility predicate on message pairs:
KEM.advantage_hybrid_le: the hybrid advantage is at most the KEM advantages of the two distinguishershybridDistinguisher D valid A b, one for each challenge bitb, plus the one-time advantage ofhybridCipherAdversary E A;KEM.advantage_hybrid_le_two_mul: it is at most twice the KEM advantage of the single distinguisherhybridHiddenBitDistinguisher D valid A, which draws the challenge bit itself, plus the same one-time advantage.
The distinguisher for bit b runs A on the challenge public key and answers its challenge by
encrypting the selected message under the challenge key. With the encapsulated key this is the
hybrid experiment (eval_cpaExperiment_hybridDistinguisher_false); with a random key it is the
one-time experiment of hybridCipherAdversary E A, which generates the KEM keys and the
encapsulation itself (eval_cpaExperiment_hybridDistinguisher_true).
Main definitions #
Cslib.Crypto.KEM.hybrid: the KEM–DEM hybrid public-key encryption scheme.Cslib.Crypto.KEM.hybridDistinguisher,Cslib.Crypto.KEM.hybridHiddenBitDistinguisher: the KEM distinguishers of the reduction.Cslib.Crypto.KEM.hybridCipherAdversary: the one-time cipher adversary of the reduction.
Main results #
Cslib.Crypto.KEM.hybrid_correct: the hybrid of a correct KEM and a correct cipher is correct.Cslib.Crypto.KEM.advantage_hybrid_le,Cslib.Crypto.KEM.advantage_hybrid_le_two_mul: the concrete bounds for the corrected form of [BS23], Exercise 11.9(b).
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Exercise 11.9 (pp. 460–461).
KEM–DEM hybrid encryption ([BS23], Exercise 11.9(a)). Key generation is that of the KEM. Encryption encapsulates a key under the public key and encrypts the message under it with the cipher; the ciphertext is the encapsulation together with the cipher's ciphertext. Decryption decapsulates the key and decrypts; either step may reject.
The KEM distinguisher of the hybrid argument for challenge bit b ([BS23],
Exercise 11.9(b)): run the left-or-right experiment of A on the challenge public key, answering
the challenge by encrypting the selected message under the challenge key and pairing the result
with the challenge ciphertext.
The single KEM distinguisher of the hybrid argument ([BS23], Exercise 11.9(b)): draw
a fair challenge bit b, run hybridDistinguisher D valid A b, and output its guess XOR b.
The one-time cipher adversary of the hybrid argument ([BS23], Exercise 11.9(b)). Its
first stage generates a KEM key pair, runs the first stage of A on the public key, and
encapsulates under it, saving the encapsulation with the state of A; its second stage pairs the
encapsulation with the cipher's challenge and runs the second stage of A.
With the encapsulated key, hybridDistinguisher D valid A b runs the chosen-plaintext
experiment of the hybrid for bit b.
With a random key, hybridDistinguisher D valid A b runs the one-time experiment of
hybridCipherAdversary E A for bit b.
hybridHiddenBitDistinguisher D valid A averages the experiments of
hybridDistinguisher D valid A b over a fair bit b, complementing the guess for b = true.
Hybrid encryption from two per-bit KEM distinguishers, the concrete bound for the
corrected form of [BS23], Exercise 11.9(b) (§11.8, pp. 460–461), in a two-distinguisher
variant: the chosen-plaintext advantage of the hybrid is at most the KEM advantages of
hybridDistinguisher D valid A false and hybridDistinguisher D valid A true plus the one-time
advantage of hybridCipherAdversary E A. KEM.cpaExperiment gives the distinguisher the public
key; the exercise's printed KEM game does not, and under it part (b) is false
(see Encryption.KEMINDCPA).
Hybrid encryption from one KEM distinguisher, the concrete bound for the corrected form of
[BS23], Exercise 11.9(b) (§11.8, pp. 460–461): the chosen-plaintext advantage of the
hybrid is at most twice the KEM advantage of hybridHiddenBitDistinguisher D valid A plus the
one-time advantage of hybridCipherAdversary E A. KEM.cpaExperiment gives the distinguisher the
public key; the exercise's printed KEM game does not, and under it part (b) is false
(see Encryption.KEMINDCPA).