-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
70 lines (62 loc) · 2.45 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
layout: default
title: CPA
---
<div class="section" id="cpa">
<h2>CPA (Chosen-Plaintext Attack) Security Game</h2>
<p>
<code>E</code> is the encryption function of a candidate symmetric cryptosystem <code>{E, D}</code>
</p>
<br><br>
<table>
<tbody class="normal" title="The challenger sets their binary "world bit" b depending on they are in world 0 or world 1 (also called "experiment 0/1").">
<tr>
<td class="meta"></td>
<td class="challenger-0"><span class="set-var">b</span> = 0</td>
<td class="challenger-1"><span class="set-var">b</span> = 1</td>
<td class="communication"></td>
<td class="adversary">Adversary</td>
</tr>
</tbody>
<tbody class="normal" title="The adversary selects a key uniformly at random from the key space.">
<tr>
<td class="meta"></td>
<td class="challenger-both" colspan="2"><span class="set-var">k</span> = rand(Keys)</td>
<td class="communication"></td>
<td class="adversary"></td>
</tr>
</tbody>
<tbody class="normal loop" title="The adversary submits pairs of messages, and always receives the one corresponding to the bit b.">
<tr>
<td class="meta" rowspan="2"><i class="fa fa-retweet"></i></td>
<td class="challenger-both receive-from-right" colspan="2"><span class="set-var">m<sub>0</sub></span>, <span class="set-var">m<sub>1</sub></span></td>
<td class="communication send-left">←</td>
<td class="adversary"><span class="set-var">m<sub>0</sub></span>, <span class="set-var">m<sub>1</sub></span> ∈ Inputs: |m<sub>0</sub>| == |m<sub>1</sub>|</td>
</tr>
<tr>
<td class="challenger-0"><span class="set-var">c</span> = E(k, m<sub>0</sub>)</td>
<td class="challenger-1"><span class="set-var">c</span> = E(k, m<sub>1</sub>)</td>
<td class="communication send-right">→</td>
<td class="adversary"><span class="set-var">c</span></td>
</tr>
</tbody>
<tbody class="normal" title="Given all the available information, the adversary selects a guess for the world bit b.">
<tr>
<td class="meta"></td>
<td class="challenger-0"></td>
<td class="challenger-1"></td>
<td class="communication"></td>
<td class="adversary"><span class="set-var">b<sub>guess</sub></span> ∈ {0, 1}</td>
</tr>
</tbody>
<tbody class="done" title="The adversary outputs their guess.">
<tr>
<td class="meta"></td>
<td class="challenger-0"></td>
<td class="challenger-1"></td>
<td class="communication"></td>
<td class="adversary send-down">b<sub>guess</sub><br>↓</td>
</tr>
</tbody>
</table>
</div>