Key encapsulation from public-key encryption #
encryptKeyEncaps keyLen encrypt samples a uniform keyLen n-bit key and encrypts it using
encrypt. This is the construction of [BS23], Exercise 11.9(e), p. 461, with the source
key space represented by fixed-length bit words. A WordINDCPA scheme gives KEMINDCPA with
exact reduction loss one: a step toward Exercise 11.9(e), not the cited result, because
WordINDCPA admits every equal-length pair of bit strings as a challenge, where the exercise's
E_a is defined over (K, C_a) and so encrypts only KEM keys (#5293). The conclusion
KEMINDCPA also gives the distinguisher pk, which the printed KEM game does not; a stronger
conclusion implies the printed one.
The reduction samples two keys of the same length and retains one alongside the public key;
therefore it respects the existing equal-length challenge rule, including at key length zero.
Key generation and the total deterministic decryptor are reused unchanged. Correctness is a separate supported-output theorem, and no failure symbol is added to this total-decapsulation model. Native strict-PPT certificates for encapsulation and for the reduction expose the unary polynomial-time key-length premise. Security itself does not assert correctness or sampleability of the honest key generator.
Main definitions #
Cslib.Crypto.Encryption.encryptKeyEncaps: encapsulate by encrypting a uniform key.Cslib.Crypto.Encryption.kemToPKEChoose: shared two-key chosen-message sampler.Cslib.Crypto.Encryption.kemToPKEAdversary: the loss-one chosen-message reduction.
Main results #
Cslib.Crypto.Encryption.isPPTOn_encryptKeyEncaps: native encapsulation certificate.Cslib.Crypto.Encryption.decrypt_encryptKeyEncaps: correctness using the original decryptor.Cslib.Crypto.Encryption.isPPTOn_kemToPKEChoose: native shared sampler certificate.Cslib.Crypto.Encryption.isPPT_kemToPKEAdversary: native reduction certificate.Cslib.Crypto.Encryption.advantage_encryptKeyEncaps_eq: exact advantage preservation (a step).Cslib.Crypto.Encryption.WordINDCPA.kemINDCPA_encryptKeyEncaps: secure PKE gives a secure KEM (a step toward Exercise 11.9(e); its premise covers every message length, #5293).
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Exercise 11.9(e), p. 461.
Encapsulation is native strict PPT when the key-length schedule and encryption are.
The original total decryptor recovers every supported encapsulated key when it correctly
decrypts supported encryptions of words of length keyLen n.
Reduce KEM distinguishing to word chosen-message encryption: choose independent keys
k₀, k₁, store (pk, k₀), and give the distinguisher (pk, (k₀, ct)) after encryption.
The shared two-key sampler has a native strict-PPT certificate when its key-length schedule is computable in polynomial time in unary.
The KEM-to-PKE reduction is native uniform strict PPT, including its saved public key and symmetric key, when the distinguisher and the unary key-length schedule are.
The first PKE experiment is exactly the real KEM experiment.
The second PKE experiment is exactly the ideal KEM experiment: the retained key is independent of the key encrypted in the ciphertext.
Exact loss-one reduction for the encrypted-key KEM: a step toward [BS23],
Exercise 11.9(e), not the cited result, which is the asymptotic statement whose premise is
discussed at WordINDCPA.kemINDCPA_encryptKeyEncaps (#5293).
The reduction challenges only with keyLen n-bit keys, so the right-hand side stays in the
exercise's message space K; the message-space gap lies in that theorem's premise, not here. The
two games use the same keyLen n key space and the same security parameter n.
Semantically secure word encryption gives a secure encrypted-key KEM: a step toward
[BS23], Exercise 11.9(e), not the cited result, because the premise WordINDCPA admits
every pair of equal-length bit strings as a challenge, where the exercise's E_a is defined over
(K, C_a) and encrypts only KEM keys (#5293).
A scheme that is semantically secure on K but leaks on messages of another length meets the
exercise's premise and not this one. The conclusion KEMINDCPA gives the distinguisher pk,
which the printed KEM game (printed p. 460) does not; a stronger conclusion implies the printed
one, so this is harmless. The native reduction only samples keys and runs the supplied
distinguisher.