slides/slides06.tex
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 04 Nov 2014 00:41:34 +0000
changeset 280 b732a63c17b8
parent 279 5616e664c020
child 281 98403100cea7
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
\documentclass[dvipsnames,14pt,t]{beamer}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
     2
\usepackage{../slides}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
     3
\usepackage{../graphics}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
     5
\setmonofont[Scale=.88]{Consolas}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
     6
\newfontfamily{\consolas}{Consolas}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
     8
\hfuzz=220pt 
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
     9
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
% beamer stuff 
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    11
\newcommand{\bl}[1]{\textcolor{blue}{#1}}  
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    12
\renewcommand{\slidecaption}{APP 06, King's College London}
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
\begin{document}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    17
\begin{frame}[t]
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
\frametitle{%
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
  \begin{tabular}{@ {}c@ {}}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
  \\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
  \LARGE Access Control and \\[-3mm] 
278
ed3c071ed36a updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 277
diff changeset
    22
  \LARGE Privacy Policies (6)\\[-6mm] 
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
  \end{tabular}}\bigskip\bigskip\bigskip
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    25
  \normalsize
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
  \begin{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
  \begin{tabular}{ll}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
  Email:  & christian.urban at kcl.ac.uk\\
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    29
  Office: & S1.27 (1st floor Strand Building)\\
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
  Slides: & KEATS (also homework is there)\\
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
  \end{tabular}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
  \end{center}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    34
\end{frame}
279
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    35
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
    36
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
279
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    38
\begin{frame}[c]
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    39
\frametitle{Problems with Key Fobs}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    40
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    41
\begin{columns}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    42
\begin{column}[T]{4cm}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    43
\includegraphics[scale=0.4]{../pics/car-standard.jpg}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    44
\end{column}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    45
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    46
\begin{column}[T]{6cm} 
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    47
\begin{itemize}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    48
\item (I learned) jamming the closing 
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    49
  signal
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    50
\item relay signals\pause
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    51
\item use diagnostic port to program 
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    52
  blank keys 
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    53
\end{itemize}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    54
\end{column}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    55
\end{columns}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    56
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    57
\end{frame}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    58
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    59
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    60
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    61
\begin{frame}[c]
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    62
\frametitle{Hashes for History}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    63
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    64
Q: What is the hash for?
279
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    65
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    66
\begin{center}
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
    67
\includegraphics[scale=0.4]{../pics/Dismantling_Megamos_Crypto.png}
279
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    68
\end{center}
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    69
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    70
\end{frame}
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    71
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    72
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
    73
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    74
\begin{frame}[t]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    75
\frametitle{Checking Solutions}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
    76
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    77
How can you check somebody's solution without revealing the solution?\pause\bigskip
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    78
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    79
Alice and Bob solve crosswords. Alice knows the answer for 21D (folio) but doesn't 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    80
want to tell Bob.\medskip
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    81
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    82
You use an English  dictionary:
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    83
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    84
\begin{itemize}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    85
\item folio \onslide<4->{$\stackrel{1}{\rightarrow}$ individual }
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    86
                \onslide<5->{$\stackrel{2}{\rightarrow}$ human}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    87
                \onslide<6->{$\stackrel{3}{\rightarrow}$ or \ldots}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    88
\only<3>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    89
\begin{quote}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    90
``an \alert{individual} leaf of paper or parchment, either loose as one of a series or 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    91
forming part of a bound volume, which is numbered on the recto or front side only.''	
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    92
\end{quote}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    93
\only<4>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    94
\begin{quote}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    95
``a single \alert{human} being as distinct from a group''
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    96
\end{quote}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    97
\only<5>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    98
\begin{quote}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
    99
``relating to \alert{or} characteristic of humankind''
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   100
\end{quote}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   101
\end{itemize}\bigskip\bigskip
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   102
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   103
\only<7->{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   104
this is essentially a hash function...but Bob can only check once he has also found the solution
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   105
}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   106
279
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
   107
\end{frame}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   108
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   109
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   110
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   111
\begin{frame}[c]
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   112
\frametitle{Zero-Knowledge Proofs}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   113
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   114
Two remarkable properties of \alert{Zero-Knowledge 
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   115
Proofs}:\bigskip
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   116
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   117
\begin{itemize}
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   118
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   119
\item Alice only reveals the fact that she knows a secret, not
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   120
      the secret itself (meaning she can convince Bob that she
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   121
      knows the secret, but does not give it to him).\bigskip
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   122
\item Having been convinced, Bob cannot use the evidence in
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   123
      order to convince Carol that Alice knows the secret.
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   124
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   125
\end{itemize}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   126
279
5616e664c020 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 278
diff changeset
   127
\end{frame}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   128
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   129
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   130
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   131
\begin{frame}[c]
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   132
\frametitle{Interactive Protocols}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   133
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   134
Q: How to cut a cake into two equal slices?
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   135
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   136
\begin{center}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   137
\includegraphics[scale=0.15]{../pics/cake.jpg}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   138
\end{center}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   139
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   140
\end{frame}
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   141
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   142
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   143
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   144
\begin{frame}[t]
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   145
\frametitle{The Idea}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   146
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   147
\begin{center}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   148
\begin{tabular}{l@{\hspace{10mm}}r}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   149
\\[-10mm]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   150
\raisebox{10mm}{\large 1.} & \includegraphics[scale=0.1]{../pics/alibaba1.png}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   151
\raisebox{10mm}{\large 2.} & \includegraphics[scale=0.1]{../pics/alibaba2.png}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   152
\raisebox{10mm}{\large 3.} & \includegraphics[scale=0.1]{../pics/alibaba3.png}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   153
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   154
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   155
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   156
\begin{textblock}{7}(1,2.5)
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   157
The Alibaba cave:
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   158
\end{textblock}
129
10526c967679 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 128
diff changeset
   159
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   160
\small
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   161
\only<2>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   162
\begin{textblock}{12}(2,13.3)
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   163
Even if Bob has a hidden camera, a recording will not be
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   164
convincing to anyone else (Alice and Bob could have made it
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   165
all up).
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   166
\end{textblock}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   167
\only<3>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   168
\begin{textblock}{12}(2,13.3)
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   169
Even worse, an observer present at the experiment would not be
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   170
convinced.
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   171
\end{textblock}}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   172
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   173
\end{frame}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   174
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   175
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   176
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   177
\begin{frame}[c]
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   178
\frametitle{Applications of ZKPs}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   179
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   180
\begin{itemize}
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   181
\item authentication, where one party wants to prove its
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   182
      identity to a second party via some secret information,
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   183
      but doesn't want the second party to learn anything
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   184
      about this secret\bigskip
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   185
\item to enforce honest behaviour while maintaining privacy:
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   186
      the idea is to force users to prove, using a
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   187
      zero-knowledge proof, that their behaviour is correct
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   188
      according to the protocol
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   189
\end{itemize}
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   190
\end{frame}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   191
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   192
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   193
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   194
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   195
\begin{frame}[c]
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   196
\frametitle{Central Properties}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   197
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   198
Zero-knowledge proof protocols should satisfy:\bigskip
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   199
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   200
\begin{itemize}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   201
\item \alert{\bf Completeness} If Alice knows the secret, Bob accepts Alice ``proof'' for sure.\bigskip
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   202
\item \alert{\bf Soundness} If Alice does not know the secret, Bob accepts her ``proof'' with a very 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   203
small probability.
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   204
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   205
\end{frame}}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   206
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
126
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   207
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   208
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   209
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   210
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   211
\begin{frame}[c]
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   212
\frametitle{Graph Isomorphism}
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   213
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   214
\begin{center}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   215
\begin{tabular}{l@{\hspace{10mm}}r}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   216
\includegraphics[scale=0.8]{../pics/graphs.png}\\
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   217
\end{tabular}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   218
\end{center}
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   219
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   220
Finding an isomorphism between two graphs is an NP complete problem.
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   221
\end{frame}}
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   222
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   223
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   224
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   225
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   226
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   227
\frametitle{Graph Isomorphism Protocol}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   228
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   229
Alice starts with knowing an isomorphism \bl{$\sigma$} between graphs \bl{$G_1$} and \bl{$G_2$}\medskip
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   230
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   231
\begin{enumerate}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   232
\item Alice generates an isomorphic graph \bl{$H$} which she sends to Bob 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   233
\item Bob asks either for an isomorphism between \bl{$G_1$} and \bl{$H$}, or
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   234
\bl{$G_2$} and \bl{$H$}	
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   235
\item Alice and Bob repeat this procedure \bl{$n$} times	
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   236
\end{enumerate}\pause
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   237
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   238
these are called commitment algorithms
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   239
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   240
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   241
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   242
   
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   243
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   244
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   245
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   246
\frametitle{Graph Isomorphism Protocol (2)}
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   247
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   248
If Alice knows the isomorphism, she can always calculate \bl{$\sigma$}.\bigskip
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   249
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   250
 If she doesn't, she can only correctly respond if Bob's 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   251
 choice of index is the same as the one she used to form \bl{$H$}. The probability 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   252
 of this happening is \bl{$\frac{1}{2}$}, so after \bl{$n$} rounds the probability of her 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   253
 always responding correctly is only \bl{$\frac{1}{2}^n$}.
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   254
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   255
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   256
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   257
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   258
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   259
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   260
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   261
\frametitle{Graph Isomorphism Protocol (3)}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   262
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   263
Why is the GI-protocol zero-knowledge?\bigskip\pause
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   264
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   265
A: We can generate a fake transcript of a conversation, which 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   266
cannot be distinguished from a ``real'' conversation.\bigskip
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   267
280
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   268
Anything Bob can compute using the information obtained from
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   269
the transcript can be computed using only a forged transcript
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   270
and therefore participation in such a communication does not
b732a63c17b8 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 279
diff changeset
   271
increase Bob's capability to perform any computation.
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   272
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   273
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   274
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   275
   
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   276
   
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   277
   
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   278
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   279
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   280
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   281
\frametitle{Non-Interactive ZKPs}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   282
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   283
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   284
\bigskip
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   285
This is amazing: Alison can publish some data that contains no data about her secret,
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   286
but this data can be used to convince anyone of the secret's existence.
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   287
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   288
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   289
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   290
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   291
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   292
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   293
\frametitle{Non-Interactive ZKPs (2)}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   294
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   295
Alice starts with knowing an isomorphism \bl{$\sigma$} between graphs \bl{$G_1$} and \bl{$G_2$}\medskip
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   296
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   297
\begin{enumerate}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   298
\item Alice generates \bl{$n$} isomorphic graphs \bl{$H_{1..n}$} which she makes public 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   299
\item she feeds the \bl{$H_{1..n}$} into a hashing function (she has no control over what
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   300
	the output will be)
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   301
\item Alice takes the first \bl{$n$} bits of the output: whenever output is \bl{$0$}, she shows 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   302
an isomorphism with \bl{$G_1$} ; for \bl{$1$} she shows an isomorphism with \bl{$G_2$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   303
\end{enumerate}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   304
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   305
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   306
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   307
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   308
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   309
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   310
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   311
\frametitle{Problems of ZKPs}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   312
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   313
\begin{itemize}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   314
\item ``grand chess master problem''\\ 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   315
(person in the middle)\bigskip
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   316
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   317
\item Alice can have multiple identities; once she committed a fraud she stops using one
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   318
\end{itemize}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   319
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   320
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   321
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   322
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   323
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   324
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   325
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   326
\frametitle{Other Methods for ZKPs}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   327
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   328
Essentially every NP-problem can be used for ZKPs
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   329
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   330
\begin{itemize}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   331
\item modular logarithms: Alice chooses public \bl{$A$},  \bl{$B$}, \bl{$p$}; and private \bl{$x$}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   332
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   333
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   334
\bl{$A^x \equiv B\; mod\; p$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   335
\end{center} 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   336
\end{itemize}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   337
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   338
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   339
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   340
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   341
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   342
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   343
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   344
\frametitle{Commitment Stage}
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   345
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   346
\begin{enumerate}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   347
\item Alice generates \bl{$z$} random numbers \bl{$r_1$}, ..., \bl{$r_z$}, all less than \bl{$p - 1$}.
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   348
\item Alice sends Bob for all \bl{$1..z$} 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   349
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   350
\bl{$h_i = A^{r_i} \;mod\; p$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   351
\end{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   352
\item Bob generates random bits   \bl{$b_1$}, ..., \bl{$b_z$} by flipping a coin
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   353
\item For each bit \bl{$b_i$}, Alice sends Bob an \bl{$s_i$} where
130
4e8482e50590 more slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 129
diff changeset
   354
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   355
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   356
\begin{tabular}{ll}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   357
\bl{$b_i = 0$}: & \bl{$s_i = r_i$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   358
\bl{$b_i = 1$}: & \bl{$s_i = (r_i - r_j) \;mod\; (p -1)$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   359
\end{tabular}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   360
\end{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   361
where \bl{$r_j$} is the lowest \bl{$j$} where \bl{$b_j = 1$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   362
 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   363
\end{enumerate}
60
Christian Urban <urbanc@in.tum.de>
parents: 59
diff changeset
   364
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   365
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   366
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
61
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   367
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   368
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   369
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   370
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   371
\frametitle{Confirmation Stage}
61
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   372
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   373
\begin{enumerate}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   374
\item For each \bl{$b_i$} Bob checks whether \bl{$s_i$} conforms to the protocol
61
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   375
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   376
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   377
\begin{tabular}{ll}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   378
\bl{$b_i = 0$}: & \bl{$A^{s_i} \equiv B\;mod\;p$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   379
\bl{$b_i = 1$}: & \bl{$A^{s_i}  \equiv h_i * h_j^{-1}  \;mod\; p$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   380
\end{tabular}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   381
\end{center}\bigskip
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   382
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   383
Bob was send 
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   384
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   385
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   386
\bl{$r_j - r _j$},  \bl{$r_m - r _j$}, \ldots, \bl{$r_p - r _j$ \;mod \;p} 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   387
\end{center}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   388
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   389
where the corresponding bits were 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   390
\bl{$1$}; Bob does not know \bl{$r_j$}, he does not know any \bl{$r_i$} where the bit was \bl{$1$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   391
\end{enumerate}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   392
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   393
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   394
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   395
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   396
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   397
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   398
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   399
\frametitle{Proving Stage}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   400
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   401
\begin{enumerate}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   402
\item Alice proves she knows \bl{$x$}, the discrete log of \bl{$B$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   403
she sends
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   404
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   405
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   406
\bl{$s_{z+1} = (x - r_j)$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   407
\end{center}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   408
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   409
\item Bob confirms
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   410
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   411
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   412
\bl{$A^{s_{z+1}} \equiv B * h_j^{-1} \;mod \; p$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   413
\end{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   414
\end{enumerate}\bigskip\pause
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   415
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   416
In order to cheat, Alice has to guess all bits in advance. She has only \bl{$1$} to \bl{$2^z$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   417
chance. \\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   418
\small\hspace{7mm}\textcolor{gray}{(explanation $\rightarrow$ \url{http://goo.gl/irL9GK})}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   419
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   420
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   421
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   422
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   423
 
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   424
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   425
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   426
\mode<presentation>{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   427
\begin{frame}[c]
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   428
\frametitle{Random Number Generators}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   429
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   430
\begin{itemize}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   431
\item Computers are deterministic. How do they generate random numbers?\bigskip\pause
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   432
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   433
\item The most popular method to generate random numbers between \bl{$0$} and \bl{$m$} is: choose
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   434
three integers
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   435
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   436
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   437
\begin{tabular}{ll}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   438
\bl{$a$} & multiplier\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   439
\bl{$c$} & increment\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   440
\bl{$X_0$} & start value
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   441
\end{tabular}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   442
\end{center}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   443
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   444
and calculate
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   445
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   446
\begin{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   447
\bl{$X_{n+1} = (a * X_n + c) \;mod\; m$}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   448
\end{center}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   449
\end{itemize}
128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 126
diff changeset
   450
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   451
\only<3->{
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   452
\begin{textblock}{7}(10,2)
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   453
\begin{tikzpicture}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   454
\draw (0,0) node[inner sep=2mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   455
{\begin{minipage}{3.8cm}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   456
\begin{tabular}{ll|l}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   457
\bl{$m =$}    & \bl{$16$} & \bl{$16$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   458
\bl{$X_0 =$} &  \bl{$1$} & \bl{$1$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   459
\bl{$a = $}    & \bl{$5$} & \bl{$5$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   460
\bl{$c =$}     & \bl{$1$} & \bl{$0$}\\
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   461
\end{tabular} 
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   462
\end{minipage}};
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   463
\end{tikzpicture}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   464
\end{textblock}}
61
Christian Urban <urbanc@in.tum.de>
parents: 60
diff changeset
   465
277
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   466
\end{frame}}
d6dc6f0e3556 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 135
diff changeset
   467
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
59
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   468
\end{document}
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   469
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   470
%%% Local Variables:  
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   471
%%% mode: latex
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   472
%%% TeX-master: t
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   473
%%% End: 
8b44bd114292 added slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   474