SLIDE 25 Hybrid Technique
Game Gi (0 ≤ i ≤ q) procedure Initialize K
$
← K; ℓ ← 0 procedure LR(M0, M1) ℓ ← ℓ + 1 If ℓ > i then C
$
← EK(M1) else C
$
← EK(M0) Return C Suppose A makes LR queries (M1
0, M1 1), . . . , (Mq 0 , Mq 1 ). Then in G A i
the messages encrypted are M1
0, . . . , Mi 0, Mi+1 1
, . . . , Mq
1
Let Pi = Pr
i ⇒ 1
97 / 116
Properties of the hybrid games
In G A
0 the messages encrypted are M1 1, . . . , Mq 1 , so
Pr
SE ⇒ 1
In G A
q the messages encrypted are M1 0, . . . , Mq 0 , so
Pr
SE ⇒ 1
So, Advind-cpa
SE
(A) = P0 − Pq = (P0 − P1) + (P1 − P2) + . . . + (Pq−1 − Pq) If P0 − Pq is large, so is at least one term in the sum. We design B to have advantage that term.
98 / 116
Design of B
adversary B ℓ ← 0 g
$
← {1, . . . , q} b′
$
← AELR(·,·) Return b′ subroutine ELR ℓ ← ℓ + 1 If ℓ > g then c
$
← EK(M1) If ℓ = g then c
$
← LR(M0, M1) If ℓ < g then c
$
← EK(M0) Suppose A’s queries are (M1
0, M1 1), . . . , (Mq 0 , Mq 1 ) and suppose B picks
g = i. Then the messages encrypted are M1
0, . . . , Mi−1
, Mi
b, Mi+1 1
, . . . , Mq
1
so Pr
SE ⇒ 1 | g = i
Pi−1 Pr
SE ⇒ 1 | g = i
Pi
99 / 116
Analysis of B
Advftg
SE(B)
= Pr
SE ⇒ 1
SE ⇒ 1
q
Pr
SE ⇒ | g = i
−
q
Pr
SE ⇒ 1 | g = i
=
q
Pi−1 · 1 q −
q
Pi · 1 q = 1 q
q
(Pi−1 − Pi) = 1 q(P0 − Pq) = 1 q Advind-cpa
SE
(A) as desired.
100 / 116