Docsity

Cryptography: Multiple-Message Security and Pseudorandom Functions, Study notes of Cryptography and System Security

Toggle sidebar
bg1
Recommended Reading.
•
KatzLindell 3.4.3, 3.5, 6.5.
1 Introduction
Dening the security of a cryptographic primitive involves three aspects:
1. What constitutes a `break'?
2. What are the adversary's resources?
3. What is the adversary's access to the system?
In this lecture, we will generalize our views of the rst and third aspects of private-key encryption.
2 Multiple-Message Security
Denition 1 (multiple-message indistinguishability)
Let
(G, E, D)
be an encryption scheme
over
P=SnPn
.
(G, E, D)
satises
multiple-message indistinguishability
if for every (nonuni-
form) PPT
A
and every polynomial
q
, there is a negligible function
ε
such that for all
m0=
(m1
0,...,mq(n)
0),m1=(m1
1, . . . , mq(n)
1)∈ Pq(n)
n
such that
kmi
0k=kmi
1k
for all
i
, we have
¯
¯
¯Pr hA(EK(m1
0), . . . , EK(mq(n)
0)) = 1i−Pr hA(EK(m1
1), . . . , EK(mq(n)
1)) = 1i¯
¯
¯≤ε(n),
where the probabilities above are taken over
K
R
←G(1n)
, the coin tosses of
EK
, and the coin tosses
of
A
.
Remark: it suces to consider
m0
and
m1
that dier in at most one component.
A (stateful) construction:
1
pf3
pf4

Partial preview of the text

Download Cryptography: Multiple-Message Security and Pseudorandom Functions and more Study notes Cryptography and System Security in PDF only on Docsity!

Recommended Reading.

  • KatzLindell Ÿ3.4.3, 3.5, 6.5.

1 Introduction

Dening the security of a cryptographic primitive involves three aspects:

  1. What constitutes a `break'?
  2. What are the adversary's resources?
  3. What is the adversary's access to the system?

In this lecture, we will generalize our views of the rst and third aspects of private-key encryption.

2 Multiple-Message Security

Denition 1 (multiple-message indistinguishability) Let (G, E, D) be an encryption scheme over P =

n Pn.^ (G, E, D)^ satises^ multiple-message indistinguishability^ if for every (nonuni- form) PPT A and every polynomial q, there is a negligible function ε such that for all m 0 = (m^10 ,... , mq 0 ( n)), m 1 = (m^11 ,... , mq 1 ( n)) ∈ P nq( n)such that ‖mi 0 ‖ = ‖mi 1 ‖ for all i, we have ∣ ∣ ∣Pr

[

A(EK (m^10 ),... , EK (mq 0 ( n))) = 1

]

− Pr

[

A(EK (m^11 ),... , EK (mq 1 ( n))) = 1

]∣∣

∣ ≤^ ε(n),

where the probabilities above are taken over K ←R G(1n), the coin tosses of EK , and the coin tosses of A.

Remark: it suces to consider m 0 and m 1 that dier in at most one component.

A (stateful) construction:

Proposition 2 There is no secure encryption scheme in which E is deterministic and stateless.

3 Pseudorandom Functions

  • Motivation: stateless secure encryption. Two parties share a short key k that allows them to generate exponentially many pseudorandom pads. To encrypt, they pick one at random and use it as a one-time pad.
  • Dene Rto be the set of all functions from { 0 , 1 }^ to { 0 , 1 }`.

Denition 3 F =

n Fn, where^ Fn^ =^ {fk^ :^ {^0 ,^1 } (n) (^) → { 0 , 1 }(n)}k∈In , is a family of pseudorandom functions (PRFs) if

 There is a PPT G such that G(1n) ∈ In.  Given k ∈ In, and x ∈ { 0 , 1 }`(n), can evaluate fk(x) in time poly(n).  For every PPT D, there is a negligible function ε such that ∣∣ ∣Pr

[

DfK^ (1n) = 1

]

− Pr

[

Df^ (1n) = 1

]∣∣

∣ ≤^ ε(n),

where the probabilities are taken over K R ← G(1n), f R ← R`(n), and the coin tosses of D.

  • Notes:

 Often (and in KL), In = { 0 , 1 }n, G(1n) outputs random n-bit string, and (n) = n.  The key k is secret so the adversary D cannot evaluate fk on its own (unlike collections of one-way functions).  A short key k generates a very large amount shared pseudorandomness: · 2 ^ pseudoran- dom bits from n-bit key! We can consider a pseudorandom function to be 2(n)^ blocks, each of length `(n). The block position corresponds to x and the block contains the value fk(x). This sequence is too long to be read in polynomial time so the PPT adversary will have random access to the sequence.

  • How to understand f ← RR , i.e. a truly random function from R? The static view is that the values of f are chosen all at once. The dynamic view is the following: when f (x) queried for the rst time, it is set to a random value (remembered for future queries). Random values are chosen on the y for f (x), with the provision that we will get the same answer f (x) if we query twice at the same point x.
  • Denition 6 (indistinguishability under chosen-plaintext attack) Let (G, E, D) be an encryption scheme over P =

n Pn.^ (G, E, D)^ satises^ indistinguishability under chosen- plaintext attack if for every (nonuniform) PPT A, there is a negligible function ε such that the probability that A outputs 1 in Experiments 0 and 1 dier by at most ε(n), where Experi- ment i is dened as follows:

  1. k R ← G(1n).
  2. Let (m 0 , m 1 ) R ← AEk^ (·)(1n).
  3. Let c R ← Ek(mi).
  4. Run AEk^ (·)(c).

Both Ek (if stateful) and A maintain state between various calls to them in the experiment.

  • Proposition 7 Indistinguishability under chosen-plaintext attack implies multiple-message indistinguishability (indeed, even multiple-message indistinguishability under chosen-plaintext attack).
  • Proposition 8 The two encryption schemes from earlier this lecture satisfy indistinguisha- bility under chosen-plaintext attack. In particular, if one-way functions exist, then there are encryption schemes secure under chosen-plaintext attack.
  • Chosen-ciphertext attacks: also give adversary access to a decryption oracle Dk(·) which it can query at any point except the challenge ciphertext c. 1. Gold standard for secure encryption. 2. Can also be achieved based on PRFs (and hence OWFs).