Multi-bit chosen-plaintext security of bitwise public-key encryption #
Library infrastructure for bitwise multi-bit public-key encryption (bitwiseEncrypt,
bitwiseDecrypt) and its single-challenge coordinate hybrid reduction step (after
[KL20], Section 12.2.2, locator not verified, rather than Theorem 12.6's
multi-encryption oracle endpoint; cf. [BS23], Section 11.3.2, Attack Game 11.2 and
Theorem 11.1, pp. 438–440, which instead lifts single-challenge to multi-challenge CPA security
over the same message space M as in Cslib.Crypto.Encryption.LoRCPA.FromSingle, rather than
1-bit-to-multi-bit bitwise encryption {0, 1} → {0, 1}^ℓ). Encrypting each bit of a message word
independently under
a single-bit public-key scheme yields a bit-word encryption scheme. Any chosen-message adversary
against equal-length challenge words of length at most maxLen n reduces to a single-bit
chosen-message adversary (bitwiseToSingle) by a hybrid argument across the coordinates: the
reduction chooses its challenge pair first, samples an index split from
Fin (dyadicSize (maxLen n)) via ProbComp.sampleDyadicIndex (maxLen n) so that sampling runs in
strict fair-coin polynomial time with zero approximation error, submits (m₀[split], m₁[split]) to
the single-bit challenger, and encrypts the prefix m₁.take split and suffix m₀.drop (split + 1)
itself using the public key.
Because all bits of the challenge word are chosen before any ciphertext is produced, the prefix and
suffix ciphertexts are sampled non-adaptively with List.mapM, so isPPT_bitwiseToSingle needs
only hvalid, hencrypt, and hmax (with no ciphertext-length hypothesis beyond hencrypt).
For unrestricted equal-length challenges (WordINDCPA), the length of the adversary's chosen words
is bounded by a polynomial in n plus the public-key length (IsPPTOn.length_le). Whenever the
honest key generator produces public keys of polynomially bounded length—in particular whenever key
generation is uniform strict PPT—every strict-PPT word adversary's challenge words satisfy a
uniform unary polynomial-time length schedule maxLen, so single-bit INDCPA implies
WordINDCPA. Without a polynomial bound on public-key length, a single-bit INDCPA scheme with
exponentially long public keys and 2⁻ⁿ per-bit leakage fails WordINDCPA.
Main definitions #
Cslib.Crypto.Encryption.bitwiseEncrypt,Cslib.Crypto.Encryption.bitwiseDecrypt: framed bit-by-bit encryption and decryption of bit words from a single-bit scheme.Cslib.Crypto.Encryption.validBoundedWords: equal-length challenge admissibility with an explicit upper boundmaxLen n.Cslib.Crypto.Encryption.bitwiseToSingleAt,Cslib.Crypto.Encryption.bitwiseToSingle: single-bit chosen-message adversaries at a fixed coordinate and at a dyadically sampled coordinate.Cslib.Crypto.Encryption.bitwiseHybridGameOn: coordinate hybrid experiment encryptingm₁.take split ++ m₀.drop split.
Main results #
Cslib.Crypto.Encryption.isPPTOn_bitwiseEncrypt,Cslib.Crypto.Encryption.computableInPolyTime_bitwiseDecrypt,Cslib.Crypto.Encryption.bitwiseDecrypt_bitwiseEncrypt: efficiency and support-level round-trip correctness ofbitwiseEncryptandbitwiseDecrypt.Cslib.Crypto.Encryption.computableInPolyTime_validBoundedWords: polynomial-time evaluation ofvalidBoundedWords maxLenfor unary polynomial-timemaxLen.Cslib.Crypto.Encryption.isPPT_bitwiseToSingleAt,Cslib.Crypto.Encryption.isPPT_bitwiseToSingle: uniform strict-PPT certificates for the coordinate hybrid reductions.Cslib.Crypto.Encryption.bitwiseHybridGameOn_step_gap,Cslib.Crypto.Encryption.eval_game_bitwiseToSingle,Cslib.Crypto.Encryption.advantage_bitwiseEncrypt_eq: single-step hybrid identity, mixture decomposition, and exact strict-PPT advantage identity with factordyadicSize (maxLen n).Cslib.Crypto.Encryption.INDCPA.indcpaOn_bitwiseEncrypt,Cslib.Crypto.Encryption.INDCPA.wordINDCPA_bitwiseEncrypt_of_publicKey_length_le,Cslib.Crypto.Encryption.INDCPA.wordINDCPA_bitwiseEncrypt: asymptotic single-bit-to-multi-bit chosen-plaintext security for bounded challenge predicates, public-key-bounded schemes, and uniform strict-PPT key generators.
References #
- J. Katz, Y. Lindell, Introduction to Modern Cryptography, 3rd ed., Section 12.2.2 (locator not verified).
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography,
Version 0.6, Section 11.2 (Attack Game 11.1, p. 436) and Section 11.3.2
(Attack Game 11.2 and Theorem 11.1, pp. 438–440; multi-challenge hybrid over a fixed message
space
M).
Bitwise word encryption, decryption, and bounded-word admissibility #
bitwiseEncrypt encrypt is uniformly strict PPT whenever encrypt is.
bitwiseDecrypt decrypt is computable in polynomial time whenever decrypt is.
bitwiseDecrypt decrypt sk on a framed list of bit ciphertexts maps decrypt sk across it.
Support-level round-trip correctness of bitwiseEncrypt and bitwiseDecrypt: if decrypt sk
recovers every bit encrypted under pk, then bitwiseDecrypt decrypt sk recovers every bit word
encrypted by bitwiseEncrypt encrypt n pk.
validBoundedWords maxLen is computable in polynomial time on the challenge-pair input when
maxLen is unary polynomial-time computable.
Saved state and coordinate hybrid reduction #
Single-bit chosen-message adversary wrapping adversary : WordAdversary at a fixed coordinate
split : ℕ. On admissible challenges with split < m₀.length and split < maxLen n, choose
submits (m₀[split], m₁[split]) and saves pk, m₁.take split, m₀.drop (split + 1) and
adversary's state; guess encrypts the prefix and suffix under pk and splices the challenge
ciphertext between them.
Uniform strict-PPT single-bit chosen-message adversary wrapping adversary : WordAdversary,
sampling the coordinate split via ProbComp.sampleDyadicIndex (maxLen n).
Uniform strict PPT certificates #
bitwiseToSingleAt is uniformly strict PPT whenever valid and maxLen are computable in
polynomial time and encrypt and adversary are strict PPT.
bitwiseToSingle is uniformly strict PPT whenever valid and maxLen are computable in
polynomial time and encrypt and adversary are strict PPT.
Coordinate hybrid games and exact advantage identity #
Coordinate hybrid experiment at split : ℕ: on admissible challenges (m₀, m₁), encrypt the
mixed word m₁.take split ++ m₀.drop split with bitwiseEncrypt encrypt.
At split = 0, bitwiseHybridGameOn is the false side of gameOn.
When every admissible challenge pair on supported keys has equal lengths at most split,
bitwiseHybridGameOn at split is the true side of gameOn.
Single-coordinate hybrid step for bitwiseHybridGameOn: for split < maxLen n, whenever
admissible challenges on supported keys have equal lengths, the signed gap between
bitwiseHybridGameOn at split and at split + 1 equals the signed single-bit gap of
bitwiseToSingleAt ... split.
Running bitwiseToSingle in game averages bitwiseToSingleAt uniformly over
Fin (dyadicSize (maxLen n)), padding indices i.val ≥ maxLen n with PMF.pure false.
Coordinate-hybrid reduction step for bitwiseEncrypt: when every admissible challenge pair on
supported keys has equal lengths at most maxLen n, the word adversary's chosen-message advantage
against bitwiseEncrypt encrypt equals dyadicSize (maxLen n) times the single-bit advantage of
bitwiseToSingle valid encrypt maxLen adversary.
Asymptotic 1-bit-to-multi-bit chosen-plaintext security #
Bounded-length bitwise hybrid step: for any polynomial-time admissibility predicate valid and
unary polynomial-time length schedule maxLen such that admissible pairs on supported keys have
equal lengths at most maxLen n, single-bit INDCPA keyGen encrypt and strict-PPT encrypt imply
INDCPAOn valid encBits keyGen (bitwiseEncrypt encrypt). Nothing is assumed about keyGen.
For any word encryption encWord and key generator keyGen whose supported public keys have
polynomially bounded bit-length pkBound n, chosen-plaintext security on
validBoundedWords maxLen for every unary polynomial-time length cap maxLen : ℕ → ℕ implies full
WordINDCPA keyGen encWord.
Public-key-bounded bitwise hybrid step: when every public key produced by keyGen n has bit
length at most pkBound n for a polynomially bounded function pkBound (which need not be
computable), every uniform strict-PPT word adversary's chosen messages are bounded by an explicit
unary polynomial-time schedule in n, so single-bit INDCPA keyGen encrypt and strict-PPT
encrypt imply WordINDCPA keyGen (bitwiseEncrypt encrypt).
Single-challenge bitwise reduction step (library infrastructure after [KL20],
Section 12.2.2, locator not verified, rather than Theorem 12.6's multi-encryption oracle endpoint;
cf. [BS23], Section 11.3.2, which lifts single- to multi-challenge CPA security over one
message space M rather than {0, 1} → {0, 1}^ℓ): when keyGen and encrypt are uniform strict
PPT, single-bit INDCPA keyGen encrypt implies WordINDCPA keyGen (bitwiseEncrypt encrypt).