Public-key encryption schemes #
A public-key encryption scheme PKE PK SK M C has typed public keys, secret keys, messages and
ciphertexts. Key generation and encryption are probabilistic programs; decryption is a function
that returns none on a ciphertext it rejects ([BS23], Section 11.2, Definition 11.1).
Correctness is a separate property (PKE.Correct), so a scheme with decryption errors is still a
PKE.
PKE.cpaExperiment is the single-challenge chosen-plaintext experiment of one fixed scheme
([BS23], Section 11.2, Attack Game 11.1, p. 436): draw a key pair and run the
left-or-right experiment lrExperiment on the public key. The adversary is a TwoStage
adversary with an arbitrary state type. The admissibility predicate valid decides which
challenge pairs are allowed; Attack Game 11.1 requires equal lengths, and an inadmissible pair
outputs false on both sides. Asymptotic security over a family of schemes and the efficiency of
the adversary are stated on top of this experiment.
Main definitions #
Cslib.Crypto.PKE: a public-key encryption scheme with typed keys, messages and ciphertexts.Cslib.Crypto.PKE.Correct: every honestly encrypted message decrypts to itself.Cslib.Crypto.PKE.cpaExperiment: the single-challenge chosen-plaintext experiment.
Main results #
Cslib.Crypto.PKE.eval_cpaExperiment: the experiment observes only the public-key marginal of key generation.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 11.2 (Definition 11.1 and Attack Game 11.1, p. 436).
A public-key encryption scheme ([BS23], Definition 11.1) with public keys PK,
secret keys SK, messages M and ciphertexts C.
A scheme is correct when decryption recovers every honestly encrypted message: for every key
pair that key generation can output and every ciphertext that encryption of m can output,
decryption with the secret key returns m ([BS23], Definition 11.1).
The single-challenge chosen-plaintext experiment of the scheme E with challenge-pair
admissibility predicate valid ([BS23], Section 11.2, Attack Game 11.1, p. 436). Draw a
key pair and run the left-or-right experiment on the public key: the adversary chooses two
messages from the public key; if valid pk m₀ m₁ holds, the challenger encrypts the message
selected by b and returns the adversary's guess, and otherwise it returns false. The secret key
is never passed to the adversary.
The chosen-plaintext experiment observes only the public-key marginal of key generation: it is the left-or-right experiment on a public key drawn from that marginal.