-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
71 lines (59 loc) · 2.25 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
71
---
layout: default
title: Message Authentication Code (MAC)
---
<div class="section" id="integrity">
<h2>Message Authentication Code (MAC) Security Game</h2>
<p>
<code>{Sign, Verify}</code> is the candidate MAC scheme.
</p>
<br><br>
<table>
<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"><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 sends messages repeatedly, and receives a valid tag from the challenger each time.">
<tr>
<td class="meta" rowspan="2"><i class="fa fa-retweet"></i><br>i++</td>
<td class="challenger-both receive-from-right"><span class="set-var">m<sub>i</sub></span></td>
<td class="communication send-left">←</td>
<td class="adversary"><span class="set-var">m<sub>i</sub></span> ∈ Inputs</td>
</tr>
<tr>
<td class="challenger-both"><span class="set-var">t<sub>i</sub></span> = Sign(k, m<sub>i</sub>)</td>
<td class="communication send-right">→</td>
<td class="adversary"><span class="set-var">t<sub>i</sub></span></td>
</tr>
</tbody>
<tbody class="normal" title="Given all the available information, the adversary attempts to produce a forged combination of message and tag that does not match any of the message-tag pairs from the query round.">
<tr>
<td class="meta"></td>
<td class="challenger-both"></td>
<td class="communication"></td>
<td class="adversary"><span class="set-var">(m<sup>*</sup>, t<sup>*</sup>)</span> ∈ Outputs: (∀ i) m<sup>*</sup> ≠ m<sub>i</sub> </td>
</tr>
</tbody>
<tbody class="done" title="The adversary outputs their attempted forgery.">
<tr>
<td class="meta"></td>
<td class="challenger-both"></td>
<td class="communication"></td>
<td class="adversary send-down">(m<sup>*</sup>, t<sup>*</sup>)<br>↓</td>
</tr>
</tbody>
</table>
<h2>Advantage</h2>
<ul>
<li><code>Advantage(Adversary) = Pr[Verify(k, m<sup>*</sup>, t<sup>*</sup>)</code> accepts the tag as valid<code>]</code></li>
</ul>
<br><br>
<h2>Correctness</h2>
<ul>
<li><code>(∀ m) Pr[k ← genKeys(), Verify(k, m, Sign(k, m)) == accept ] == 1</code></li>
</ul>
</div>