Strongly unpredictable ciphertexts #
A public-key encryption algorithm (possibly fallible, represented as Option (C n) where none
models an encryption error) has strongly unpredictable ciphertexts ([BS23], §21.4.1,
p. 872) if there is a negligible function ε : ℕ → ℝ≥0 such that at every security parameter n,
for every public key pk : PK n (including adversarially chosen or malformed keys), every message
m : Msg n, and every non-error ciphertext c : C n, the probability that encrypting m under
pk outputs some c is at most ε n.
Fixed-type schemes (PK Msg C : Type) are instances of StronglyUnpredictable by unification with
constant type families fun _ => PK, fun _ => Msg, fun _ => C.
Main definitions #
Cslib.Crypto.Encryption.CiphertextHitBound: uniform pointwise upper boundεonPr[encrypt pk m = some c]at a single security parameter.Cslib.Crypto.Encryption.StronglyUnpredictable: existence of a negligible uniform ciphertext hit bound across all security parameters, public keys, messages, and non-error ciphertexts.
Main results #
Cslib.Crypto.Encryption.ciphertextHitBound_map_some_iff: characterization for total encryption algorithmssome <$> encrypt pk m.Cslib.Crypto.Encryption.CiphertextHitBound.collision_le: two independent invocations (even under distinct adversarially chosen keys and messages) output the same non-error ciphertext with probability at mostε([BS23], §21.9.6, p. 897).Cslib.Crypto.Encryption.stronglyUnpredictable_iff_forall: equivalence with sequential negligibility over arbitrary sequences(pk, m, c)underNonemptykey, message, and ciphertext types.Cslib.Crypto.Encryption.StronglyUnpredictable.negligible_collision: negligible non-error ciphertext collision probability across two independent invocations.
References #
- D. Boneh and V. Shoup, A Graduate Course in Applied Cryptography, Section 21.4.1 (p. 872) and Section 21.9.6 (p. 897).
At one security parameter, a fallible encryption algorithm
encrypt : PK → Msg → ProbComp (Option C) (none represents error) has ciphertext hit
probability at most ε if for every public key pk, message m, and non-error ciphertext
some c, Pr[encrypt pk m = some c] ≤ ε.
For an infallible encryption algorithm lifted by some <$> ·, CiphertextHitBound reduces
directly to bounding Pr[encrypt pk m = c] ≤ ε.
If encrypt has ciphertext hit bound ε, then two independent invocations (even under
distinct adversarially chosen public keys and messages) output the same non-error ciphertext with
probability at most ε ([BS23], §21.9.6, p. 897).
Strongly unpredictable ciphertexts ([BS23], §21.4.1, p. 872) for a family of
fallible encryption algorithms encrypt : ∀ n, PK n → Msg n → ProbComp (Option (C n)) (none
represents error): there exists a negligible bound ε : ℕ → ℝ≥0 such that at every security
parameter n, every public key pk : PK n (including adversarially chosen ones), every message
m : Msg n, and every non-error ciphertext some c, Pr[encrypt n pk m = some c] ≤ ε n.
Construct StronglyUnpredictable from a negligible hit-bound sequence B.
Under Nonempty public-key, message, and ciphertext types, uniform strong ciphertext
unpredictability is equivalent to requiring Pr[encrypt n (pk n) (m n) = some (c n)] to be
negligible for every sequence (pk, m, c) ([BS23], §21.4.1, p. 872).
If encrypt has strongly unpredictable ciphertexts, then two independent invocations (even
under adversarially chosen sequences of keys and messages) collide on a non-error ciphertext with
negligible probability ([BS23], §21.9.6, p. 897).