65
|
1 |
\documentclass[dvipsnames,14pt,t]{beamer}
|
|
2 |
\usepackage{proof}
|
|
3 |
\usepackage{beamerthemeplainculight}
|
|
4 |
\usepackage[T1]{fontenc}
|
|
5 |
\usepackage[latin1]{inputenc}
|
|
6 |
\usepackage{mathpartir}
|
|
7 |
\usepackage{isabelle}
|
|
8 |
\usepackage{isabellesym}
|
|
9 |
\usepackage[absolute,overlay]{textpos}
|
|
10 |
\usepackage{ifthen}
|
|
11 |
\usepackage{tikz}
|
|
12 |
\usepackage{courier}
|
|
13 |
\usepackage{listings}
|
|
14 |
\usetikzlibrary{arrows}
|
|
15 |
\usetikzlibrary{positioning}
|
|
16 |
\usetikzlibrary{calc}
|
|
17 |
\usepackage{graphicx}
|
66
|
18 |
\usetikzlibrary{shapes}
|
|
19 |
\usetikzlibrary{shadows}
|
65
|
20 |
|
|
21 |
\isabellestyle{rm}
|
|
22 |
\renewcommand{\isastyle}{\rm}%
|
|
23 |
\renewcommand{\isastyleminor}{\rm}%
|
|
24 |
\renewcommand{\isastylescript}{\footnotesize\rm\slshape}%
|
|
25 |
\renewcommand{\isatagproof}{}
|
|
26 |
\renewcommand{\endisatagproof}{}
|
|
27 |
\renewcommand{\isamarkupcmt}[1]{#1}
|
|
28 |
|
|
29 |
% Isabelle characters
|
|
30 |
\renewcommand{\isacharunderscore}{\_}
|
|
31 |
\renewcommand{\isacharbar}{\isamath{\mid}}
|
|
32 |
\renewcommand{\isasymiota}{}
|
|
33 |
\renewcommand{\isacharbraceleft}{\{}
|
|
34 |
\renewcommand{\isacharbraceright}{\}}
|
|
35 |
\renewcommand{\isacharless}{$\langle$}
|
|
36 |
\renewcommand{\isachargreater}{$\rangle$}
|
|
37 |
\renewcommand{\isasymsharp}{\isamath{\#}}
|
|
38 |
\renewcommand{\isasymdots}{\isamath{...}}
|
|
39 |
\renewcommand{\isasymbullet}{\act}
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
\definecolor{javared}{rgb}{0.6,0,0} % for strings
|
|
44 |
\definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments
|
|
45 |
\definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords
|
|
46 |
\definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc
|
|
47 |
|
|
48 |
\lstset{language=Java,
|
|
49 |
basicstyle=\ttfamily,
|
|
50 |
keywordstyle=\color{javapurple}\bfseries,
|
|
51 |
stringstyle=\color{javagreen},
|
|
52 |
commentstyle=\color{javagreen},
|
|
53 |
morecomment=[s][\color{javadocblue}]{/**}{*/},
|
|
54 |
numbers=left,
|
|
55 |
numberstyle=\tiny\color{black},
|
|
56 |
stepnumber=1,
|
|
57 |
numbersep=10pt,
|
|
58 |
tabsize=2,
|
|
59 |
showspaces=false,
|
|
60 |
showstringspaces=false}
|
|
61 |
|
|
62 |
\lstdefinelanguage{scala}{
|
|
63 |
morekeywords={abstract,case,catch,class,def,%
|
|
64 |
do,else,extends,false,final,finally,%
|
|
65 |
for,if,implicit,import,match,mixin,%
|
|
66 |
new,null,object,override,package,%
|
|
67 |
private,protected,requires,return,sealed,%
|
|
68 |
super,this,throw,trait,true,try,%
|
|
69 |
type,val,var,while,with,yield},
|
|
70 |
otherkeywords={=>,<-,<\%,<:,>:,\#,@},
|
|
71 |
sensitive=true,
|
|
72 |
morecomment=[l]{//},
|
|
73 |
morecomment=[n]{/*}{*/},
|
|
74 |
morestring=[b]",
|
|
75 |
morestring=[b]',
|
|
76 |
morestring=[b]"""
|
|
77 |
}
|
|
78 |
|
|
79 |
\lstset{language=Scala,
|
|
80 |
basicstyle=\ttfamily,
|
|
81 |
keywordstyle=\color{javapurple}\bfseries,
|
|
82 |
stringstyle=\color{javagreen},
|
|
83 |
commentstyle=\color{javagreen},
|
|
84 |
morecomment=[s][\color{javadocblue}]{/**}{*/},
|
|
85 |
numbers=left,
|
|
86 |
numberstyle=\tiny\color{black},
|
|
87 |
stepnumber=1,
|
|
88 |
numbersep=10pt,
|
|
89 |
tabsize=2,
|
|
90 |
showspaces=false,
|
|
91 |
showstringspaces=false}
|
|
92 |
|
|
93 |
% beamer stuff
|
|
94 |
\renewcommand{\slidecaption}{APP 07, King's College London, 13 November 2012}
|
|
95 |
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}% for definitions
|
|
96 |
\newcommand{\bl}[1]{\textcolor{blue}{#1}}
|
|
97 |
\begin{document}
|
|
98 |
|
|
99 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
100 |
\mode<presentation>{
|
|
101 |
\begin{frame}<1>[t]
|
|
102 |
\frametitle{%
|
|
103 |
\begin{tabular}{@ {}c@ {}}
|
|
104 |
\\
|
|
105 |
\LARGE Access Control and \\[-3mm]
|
|
106 |
\LARGE Privacy Policies (7)\\[-6mm]
|
|
107 |
\end{tabular}}\bigskip\bigskip\bigskip
|
|
108 |
|
|
109 |
%\begin{center}
|
|
110 |
%\includegraphics[scale=1.3]{pics/barrier.jpg}
|
|
111 |
%\end{center}
|
|
112 |
|
|
113 |
\normalsize
|
|
114 |
\begin{center}
|
|
115 |
\begin{tabular}{ll}
|
|
116 |
Email: & christian.urban at kcl.ac.uk\\
|
|
117 |
Of$\!$fice: & S1.27 (1st floor Strand Building)\\
|
|
118 |
Slides: & KEATS (also homework is there)\\
|
|
119 |
\end{tabular}
|
|
120 |
\end{center}
|
|
121 |
|
|
122 |
|
|
123 |
\end{frame}}
|
|
124 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
125 |
|
|
126 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
127 |
\mode<presentation>{
|
|
128 |
\begin{frame}[c]
|
|
129 |
\frametitle{Judgements}
|
|
130 |
|
|
131 |
\begin{center}
|
|
132 |
\begin{tikzpicture}[scale=1]
|
|
133 |
|
|
134 |
\draw (0.0,0.0) node {\LARGE \bl{$\Gamma \vdash F$}};
|
|
135 |
\onslide<2->{
|
|
136 |
\draw (-1,-0.3) node (X) {};
|
|
137 |
\draw (-2.0,-2.0) node (Y) {};
|
|
138 |
\draw (0.7,-3) node {\begin{tabular}{l}Gamma\\stands for a collection of formulas\\(``assumptions'')\end{tabular}};
|
|
139 |
\draw[red, ->, line width = 2mm] (Y) -- (X);
|
|
140 |
|
|
141 |
\draw (1.2,-0.1) node (X1) {};
|
|
142 |
\draw (2.8,-0.1) node (Y1) {};
|
|
143 |
\draw (4.5,-0.1) node {\begin{tabular}{l}a single formula\end{tabular}};
|
|
144 |
\draw[red, ->, line width = 2mm] (Y1) -- (X1);
|
|
145 |
|
|
146 |
\draw (-0.1,0.1) node (X2) {};
|
|
147 |
\draw (0.5,1.5) node (Y2) {};
|
|
148 |
\draw (1,1.8) node {\begin{tabular}{l}entails sign\end{tabular}};
|
|
149 |
\draw[red, ->, line width = 2mm] (Y2) -- (X2);}
|
|
150 |
|
|
151 |
\end{tikzpicture}
|
|
152 |
\end{center}
|
|
153 |
|
|
154 |
\pause\pause
|
|
155 |
\footnotesize Gimel (Phoenician), Gamma (Greek), C and G (Latin), Gim (Arabic),\\[-2mm] ?? (Indian), Ge (Cyrillic)
|
|
156 |
\end{frame}}
|
|
157 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
158 |
|
|
159 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
160 |
\mode<presentation>{
|
|
161 |
\begin{frame}[c]
|
|
162 |
\frametitle{Inference Rules}
|
|
163 |
|
|
164 |
\begin{center}
|
|
165 |
\begin{tikzpicture}[scale=1]
|
|
166 |
|
|
167 |
\draw (0.0,0.0) node
|
|
168 |
{\Large\bl{\infer{\Gamma \vdash F_1 \wedge F_2}{\Gamma \vdash F_1 & \Gamma \vdash F_2}}};
|
|
169 |
|
|
170 |
\draw (-0.1,-0.7) node (X) {};
|
|
171 |
\draw (-0.1,-1.9) node (Y) {};
|
|
172 |
\draw (-0.2,-2) node {\begin{tabular}{l}conclusion\end{tabular}};
|
|
173 |
\draw[red, ->, line width = 2mm] (Y) -- (X);
|
|
174 |
|
|
175 |
\draw (-1,0.6) node (X2) {};
|
|
176 |
\draw (0.0,1.6) node (Y2) {};
|
|
177 |
\draw (0,1.8) node {\begin{tabular}{l}premisses\end{tabular}};
|
|
178 |
\draw[red, ->, line width = 2mm] (Y2) -- (X2);
|
|
179 |
\draw (1,0.6) node (X3) {};
|
|
180 |
\draw (0.0,1.6) node (Y3) {};
|
|
181 |
\draw[red, ->, line width = 2mm] (Y3) -- (X3);
|
|
182 |
\end{tikzpicture}
|
|
183 |
\end{center}
|
|
184 |
|
66
|
185 |
\only<2>{
|
|
186 |
\begin{textblock}{11}(1,13)
|
|
187 |
\small
|
|
188 |
\bl{$P \,\text{says}\, F \vdash Q\,\text{says}\, F\wedge P \,\text{says}\, G $}
|
|
189 |
\end{textblock}}
|
|
190 |
\only<3>{
|
|
191 |
\begin{textblock}{11}(1,13)
|
|
192 |
\small
|
|
193 |
\bl{$\underbrace{P \,\text{says}\, F}_{\Gamma} \vdash \underbrace{Q\,\text{says}\, F}_{F_1} \,\wedge
|
|
194 |
\underbrace{P \,\text{says}\, G}_{F_2} $}
|
|
195 |
\end{textblock}}
|
|
196 |
|
|
197 |
\end{frame}}
|
|
198 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
199 |
|
|
200 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
201 |
\mode<presentation>{
|
|
202 |
\begin{frame}[c]
|
|
203 |
|
|
204 |
\begin{center}
|
|
205 |
\Large
|
|
206 |
\bl{\infer{\Gamma \vdash F_2}{\Gamma \vdash F_1\Rightarrow F_2 & \Gamma \vdash F_1}}\bigskip\bigskip\bigskip
|
|
207 |
|
|
208 |
\bl{\infer{\Gamma\vdash P\,\text{says}\, F}{\Gamma \vdash F}}
|
|
209 |
\end{center}
|
|
210 |
|
|
211 |
\end{frame}}
|
|
212 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
213 |
|
|
214 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
215 |
\mode<presentation>{
|
|
216 |
\begin{frame}[c]
|
|
217 |
\frametitle{Digression: Proofs in CS}
|
|
218 |
|
|
219 |
Formal proofs in CS sound like science fiction?\pause{} Completely irrelevant!\pause
|
|
220 |
|
|
221 |
\begin{itemize}
|
|
222 |
\item in 2008, verification of a small C-compiler\medskip
|
|
223 |
\item in 2010, verification of a micro-kernel operating system (approximately 8700 loc)
|
|
224 |
\begin{itemize}
|
|
225 |
\item 200k loc of proof
|
|
226 |
\item 25 - 30 person years
|
|
227 |
\item found 160 bugs in the C code (144 by the proof)
|
|
228 |
\end{itemize}
|
|
229 |
\end{itemize}
|
|
230 |
|
65
|
231 |
\end{frame}}
|
|
232 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
233 |
|
66
|
234 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
235 |
\mode<presentation>{
|
|
236 |
\begin{frame}[c]
|
|
237 |
\frametitle{}
|
|
238 |
|
|
239 |
\begin{tabular}{c@ {\hspace{2mm}}c}
|
|
240 |
\\[6mm]
|
|
241 |
\begin{tabular}{c}
|
|
242 |
\includegraphics[scale=0.11]{harper.jpg}\\[-2mm]
|
|
243 |
{\footnotesize Bob Harper}\\[-2.5mm]
|
|
244 |
{\footnotesize (CMU)}
|
|
245 |
\end{tabular}
|
|
246 |
\begin{tabular}{c}
|
|
247 |
\includegraphics[scale=0.37]{pfenning.jpg}\\[-2mm]
|
|
248 |
{\footnotesize Frank Pfenning}\\[-2.5mm]
|
|
249 |
{\footnotesize (CMU)}
|
|
250 |
\end{tabular} &
|
|
251 |
|
|
252 |
\begin{tabular}{p{6cm}}
|
|
253 |
\raggedright
|
|
254 |
\color{gray}{published a proof about a specification in a journal (2005),
|
|
255 |
$\sim$31pages}
|
|
256 |
\end{tabular}\\
|
|
257 |
|
|
258 |
\pause
|
|
259 |
\\[0mm]
|
|
260 |
|
|
261 |
\begin{tabular}{c}
|
|
262 |
\includegraphics[scale=0.36]{appel.jpg}\\[-2mm]
|
|
263 |
{\footnotesize Andrew Appel}\\[-2.5mm]
|
|
264 |
{\footnotesize (Princeton)}
|
|
265 |
\end{tabular} &
|
|
266 |
|
|
267 |
\begin{tabular}{p{6cm}}
|
|
268 |
\raggedright
|
|
269 |
\color{gray}{relied on their proof in a\\ {\bf security} critical application}
|
|
270 |
\end{tabular}
|
|
271 |
\end{tabular}
|
|
272 |
|
|
273 |
\end{frame}}
|
|
274 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
275 |
|
|
276 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
277 |
\mode<presentation>{
|
|
278 |
\begin{frame}
|
|
279 |
\frametitle{Proof-Carrying Code}
|
|
280 |
|
|
281 |
\begin{textblock}{10}(2.5,2.2)
|
|
282 |
\begin{block}{Idea:}
|
|
283 |
\begin{center}
|
|
284 |
\begin{tikzpicture}
|
|
285 |
\draw[help lines,cream] (0,0.2) grid (8,4);
|
|
286 |
|
|
287 |
\draw[line width=1mm, red] (5.5,0.6) rectangle (7.5,4);
|
|
288 |
\node[anchor=base] at (6.5,2.8)
|
|
289 |
{\small\begin{tabular}{@ {}p{1.9cm}@ {}}\centering user: untrusted code\end{tabular}};
|
|
290 |
|
|
291 |
\draw[line width=1mm, red] (0.5,0.6) rectangle (2.5,4);
|
|
292 |
\node[anchor=base] at (1.5,2.3)
|
|
293 |
{\small\begin{tabular}{@ {}p{1.9cm}@ {}}\centering developer ---\\ web server\end{tabular}};
|
|
294 |
|
|
295 |
\onslide<3->{
|
|
296 |
\draw[line width=1mm, red, fill=red] (5.5,0.6) rectangle (7.5,1.8);
|
|
297 |
\node[anchor=base,white] at (6.5,1.1)
|
|
298 |
{\small\begin{tabular}{@ {}p{1.9cm}@ {}}\bf\centering proof- checker\end{tabular}};}
|
|
299 |
|
|
300 |
\node at (3.8,3.0) [single arrow, fill=red,text=white, minimum height=3cm]{\bf code};
|
|
301 |
\onslide<2->{
|
|
302 |
\node at (3.8,1.3) [single arrow, fill=red,text=white, minimum height=3cm]{\bf certificate};
|
|
303 |
\node at (3.8,1.9) {\small\color{gray}{\mbox{}\hspace{-1mm}a proof}};
|
|
304 |
}
|
|
305 |
|
|
306 |
|
|
307 |
\end{tikzpicture}
|
|
308 |
\end{center}
|
|
309 |
\end{block}
|
|
310 |
\end{textblock}
|
|
311 |
|
|
312 |
%\begin{textblock}{15}(2,12)
|
|
313 |
%\small
|
|
314 |
%\begin{itemize}
|
|
315 |
%\item<4-> Appel's checker is $\sim$2700 lines of code (1865 loc of\\ LF definitions;
|
|
316 |
%803 loc in C including 2 library functions)\\[-3mm]
|
|
317 |
%\item<5-> 167 loc in C implement a type-checker
|
|
318 |
%\end{itemize}
|
|
319 |
%\end{textblock}
|
|
320 |
|
|
321 |
\end{frame}}
|
|
322 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
323 |
|
|
324 |
\tikzstyle{every node}=[node distance=25mm,text height=1.5ex, text depth=.25ex]
|
|
325 |
\tikzstyle{node1}=[rectangle, minimum size=10mm, rounded corners=3mm, very thick,
|
|
326 |
draw=black!50, top color=white, bottom color=black!20]
|
|
327 |
\tikzstyle{node2}=[rectangle, minimum size=12mm, rounded corners=3mm, very thick,
|
|
328 |
draw=red!70, top color=white, bottom color=red!50!black!20]
|
|
329 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
330 |
\mode<presentation>{
|
|
331 |
\begin{frame}<2->[squeeze]
|
|
332 |
\frametitle{}
|
|
333 |
|
|
334 |
\begin{columns}
|
|
335 |
|
|
336 |
\begin{column}{0.8\textwidth}
|
|
337 |
\begin{textblock}{0}(1,2)
|
|
338 |
|
|
339 |
\begin{tikzpicture}
|
|
340 |
\matrix[ampersand replacement=\&,column sep=7mm, row sep=5mm]
|
|
341 |
{ \&[-10mm]
|
|
342 |
\node (def1) [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}}; \&
|
|
343 |
\node (proof1) [node1] {\large Proof}; \&
|
|
344 |
\node (alg1) [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}}; \\
|
|
345 |
|
|
346 |
\onslide<4->{\node {\begin{tabular}{c}\small 1st\\[-2.5mm] \footnotesize solution\end{tabular}};} \&
|
|
347 |
\onslide<4->{\node (def2) [node2] {\large Spec$^\text{+ex}$};} \&
|
|
348 |
\onslide<4->{\node (proof2) [node1] {\large Proof};} \&
|
|
349 |
\onslide<4->{\node (alg2) [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}};} \\
|
|
350 |
|
|
351 |
\onslide<5->{\node {\begin{tabular}{c}\small 2nd\\[-2.5mm] \footnotesize solution\end{tabular}};} \&
|
|
352 |
\onslide<5->{\node (def3) [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}};} \&
|
|
353 |
\onslide<5->{\node (proof3) [node1] {\large Proof};} \&
|
|
354 |
\onslide<5->{\node (alg3) [node2] {\large Alg$^\text{-ex}$};} \\
|
|
355 |
|
|
356 |
\onslide<6->{\node {\begin{tabular}{c}\small 3rd\\[-2.5mm] \footnotesize solution\end{tabular}};} \&
|
|
357 |
\onslide<6->{\node (def4) [node1] {\large\hspace{1mm}Spec\hspace{1mm}\mbox{}};} \&
|
|
358 |
\onslide<6->{\node (proof4) [node2] {\large\hspace{1mm}Proof\hspace{1mm}};} \&
|
|
359 |
\onslide<6->{\node (alg4) [node1] {\large\hspace{1mm}Alg\hspace{1mm}\mbox{}};} \\
|
|
360 |
};
|
|
361 |
|
|
362 |
\draw[->,black!50,line width=2mm] (proof1) -- (def1);
|
|
363 |
\draw[->,black!50,line width=2mm] (proof1) -- (alg1);
|
|
364 |
|
|
365 |
\onslide<4->{\draw[->,black!50,line width=2mm] (proof2) -- (def2);}
|
|
366 |
\onslide<4->{\draw[->,black!50,line width=2mm] (proof2) -- (alg2);}
|
|
367 |
|
|
368 |
\onslide<5->{\draw[->,black!50,line width=2mm] (proof3) -- (def3);}
|
|
369 |
\onslide<5->{\draw[->,black!50,line width=2mm] (proof3) -- (alg3);}
|
|
370 |
|
|
371 |
\onslide<6->{\draw[->,black!50,line width=2mm] (proof4) -- (def4);}
|
|
372 |
\onslide<6->{\draw[->,black!50,line width=2mm] (proof4) -- (alg4);}
|
|
373 |
|
|
374 |
\onslide<3->{\draw[white,line width=1mm] (1.1,3.2) -- (0.9,2.85) -- (1.1,2.35) -- (0.9,2.0);}
|
|
375 |
\end{tikzpicture}
|
|
376 |
|
|
377 |
\end{textblock}
|
|
378 |
\end{column}
|
|
379 |
\end{columns}
|
|
380 |
|
|
381 |
|
|
382 |
\begin{textblock}{3}(12,3.6)
|
|
383 |
\onslide<4->{
|
|
384 |
\begin{tikzpicture}
|
|
385 |
\node at (0,0) [single arrow, shape border rotate=270, fill=red,text=white]{2h};
|
|
386 |
\end{tikzpicture}}
|
|
387 |
\end{textblock}
|
|
388 |
|
|
389 |
\end{frame}}
|
|
390 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
391 |
|
|
392 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
393 |
\mode<presentation>{
|
|
394 |
\begin{frame}[c]
|
|
395 |
\frametitle{Mars Pathfinder Mission 1997}
|
|
396 |
|
|
397 |
\begin{center}
|
|
398 |
\includegraphics[scale=0.15]{marspath1.png}
|
|
399 |
\includegraphics[scale=0.16]{marspath3.png}
|
|
400 |
\includegraphics[scale=0.3]{marsrover.png}
|
|
401 |
\end{center}
|
|
402 |
|
|
403 |
\begin{itemize}
|
|
404 |
\item despite NASA's famous testing procedure, the lander crashed frequently on Mars
|
|
405 |
\item problem was an algorithm not used in the OS
|
|
406 |
\end{itemize}
|
|
407 |
|
|
408 |
\end{frame}}
|
|
409 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
410 |
|
65
|
411 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
412 |
\mode<presentation>{
|
|
413 |
\begin{frame}[c]
|
|
414 |
\frametitle{Trusted Third Party}
|
|
415 |
|
|
416 |
Simple protocol for establishing a secure connection via a mutually
|
|
417 |
trusted 3rd party (server):
|
|
418 |
|
|
419 |
\begin{center}
|
|
420 |
\begin{tabular}{@ {\hspace{-7mm}}l@{\hspace{2mm}}r@ {\hspace{1mm}}l}
|
|
421 |
Message 1 & \bl{$A \rightarrow S :$} & \bl{$A, B$}\\
|
|
422 |
Message 2 & \bl{$S \rightarrow A :$} & \bl{$\{K_{AB}\}_{K_{AS}}$} and \bl{$\{\{K_{AB}\}_{K_{BS}} \}_{K_{AS}}$}\\
|
|
423 |
Message 3 & \bl{$A \rightarrow B :$} & \bl{$\{K_{AB}\}_{K_{BS}} $}\\
|
|
424 |
Message 4 & \bl{$A \rightarrow B :$} & \bl{$\{m\}_{K_{AB}}$}\\
|
|
425 |
\end{tabular}
|
|
426 |
\end{center}
|
|
427 |
|
|
428 |
\end{frame}}
|
|
429 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
430 |
|
|
431 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
432 |
\mode<presentation>{
|
|
433 |
\begin{frame}[c]
|
|
434 |
\frametitle{Encrypted Messages}
|
|
435 |
|
|
436 |
\begin{itemize}
|
|
437 |
\item Alice sends a message \bl{$m$}
|
|
438 |
\begin{center}
|
|
439 |
\bl{Alice says $m$}
|
|
440 |
\end{center}\medskip\pause
|
|
441 |
|
|
442 |
\item Alice sends an encrypted message \bl{$m$}\\ (with key \bl{$K$})
|
|
443 |
\begin{center}
|
|
444 |
\bl{Alice says $\{m\}_K$}
|
|
445 |
\end{center}\medskip\pause
|
|
446 |
|
|
447 |
\item Decryption of Alice's message\smallskip
|
|
448 |
\begin{center}
|
|
449 |
\bl{\mbox{\infer{\Gamma \vdash \text{Alice}\;\text{says}\;m}
|
|
450 |
{\Gamma \vdash \text{Alice}\;\text{says}\;\{m\}_K & \Gamma \vdash \text{Alice}\,\text{says}\,K}}}
|
|
451 |
\end{center}
|
|
452 |
\end{itemize}
|
|
453 |
|
|
454 |
\end{frame}}
|
|
455 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
456 |
|
|
457 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
458 |
\mode<presentation>{
|
|
459 |
\begin{frame}[c]
|
|
460 |
\frametitle{Encryption}
|
|
461 |
|
|
462 |
\begin{itemize}
|
|
463 |
\item Encryption of a message\smallskip
|
|
464 |
\begin{center}
|
|
465 |
\bl{\mbox{\infer{\Gamma \vdash \text{Alice}\;\text{says}\;\{m\}_K}
|
|
466 |
{\Gamma \vdash \text{Alice}\;\text{says}\;m & \Gamma \vdash \text{Alice}\,\text{says}\,K}}}
|
|
467 |
\end{center}
|
|
468 |
\end{itemize}
|
|
469 |
|
|
470 |
\end{frame}}
|
|
471 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
472 |
|
|
473 |
|
|
474 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
475 |
\mode<presentation>{
|
|
476 |
\begin{frame}[c]
|
|
477 |
\frametitle{Trusted Third Party}
|
|
478 |
|
|
479 |
\begin{itemize}
|
|
480 |
\item Alice calls Sam for a key to communicate with Bob
|
|
481 |
\item Sam responds with a key that Alice can read and a key Bob can read (pre-shared)
|
|
482 |
\item Alice sends the message encrypted with the key and the second key it recieved
|
|
483 |
\end{itemize}\bigskip
|
|
484 |
|
|
485 |
\begin{center}
|
|
486 |
\bl{\begin{tabular}{lcl}
|
|
487 |
$A$ sends $S$ &:& $\textit{Connect}(A,B)$\\
|
|
488 |
$S$ sends $A$ &:& $\{K_{AB}\}_{K_{AS}}$ \textcolor{black}{and} $\{\{K_{AB}\}_{K_{BS}}\}_{K_{AS}}$\\
|
|
489 |
$A$ sends $B$ &:& $\{K_{AB}\}_{K_{BS}}$\\
|
|
490 |
$A$ sends $B$ &:& $\{m\}_{K_{AB}}$
|
|
491 |
\end{tabular}}
|
|
492 |
\end{center}
|
|
493 |
|
|
494 |
\end{frame}}
|
|
495 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
496 |
|
|
497 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
498 |
\mode<presentation>{
|
|
499 |
\begin{frame}[c]
|
|
500 |
\frametitle{Sending Rule}
|
|
501 |
|
|
502 |
\bl{\begin{center}
|
|
503 |
\mbox{\infer{\Gamma \vdash Q \;\textit{says}\; F}
|
|
504 |
{\Gamma \vdash P \;\textit{says}\; F & \Gamma \vdash P \;\textit{sends}\; Q : F}}
|
|
505 |
\end{center}}\bigskip\pause
|
|
506 |
|
|
507 |
\bl{$P \,\text{sends}\, Q : F \dn$}\\
|
|
508 |
\hspace{6mm}\bl{$(P \,\text{says}\, F) \Rightarrow (Q \,\text{says}\, F)$}
|
|
509 |
|
|
510 |
\end{frame}}
|
|
511 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
512 |
|
|
513 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
514 |
\mode<presentation>{
|
|
515 |
\begin{frame}[c]
|
|
516 |
\frametitle{Trusted Third Party}
|
|
517 |
|
|
518 |
\begin{center}
|
|
519 |
\bl{\begin{tabular}{l}
|
|
520 |
$A$ sends $S$ : $\textit{Connect}(A,B)$\\
|
|
521 |
\bl{$S \,\text{says}\, (\textit{Connect}(A,B) \Rightarrow$}\\
|
|
522 |
\hspace{2.5cm}\bl{$\{K_{AB}\}_{K_{AS}} \wedge
|
|
523 |
\{\{K_{AB}\}_{K_{BS}}\}_{K_{AS}})$}\\
|
|
524 |
$S$ sends $A$ : $\{K_{AB}\}_{K_{AS}}$ \bl{$\wedge$} $\{\{K_{AB}\}_{K_{BS}}\}_{K_{AS}}$\\
|
|
525 |
$A$ sends $B$ : $\{K_{AB}\}_{K_{BS}}$\\
|
|
526 |
$A$ sends $B$ : $\{m\}_{K_{AB}}$
|
|
527 |
\end{tabular}}
|
|
528 |
\end{center}\bigskip\pause
|
|
529 |
|
|
530 |
|
|
531 |
\bl{$\Gamma \vdash B \,\text{says} \, m$}?
|
|
532 |
\end{frame}}
|
|
533 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
534 |
|
|
535 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
536 |
\mode<presentation>{
|
|
537 |
\begin{frame}[c]
|
|
538 |
\frametitle{Challenge-Response Protocol}
|
|
539 |
|
|
540 |
\begin{itemize}
|
|
541 |
\item an engine \bl{$E$} and a transponder \bl{$T$} share a key \bl{$K$}\bigskip
|
|
542 |
\item \bl{$E$} sends out a \alert{nonce} \bl{$N$} (random number) to \bl{$T$}\bigskip
|
|
543 |
\item \bl{$T$} responds with \bl{$\{N\}_K$}\bigskip
|
|
544 |
\item if \bl{$E$} receives \bl{$\{N\}_K$} from \bl{$T$} then starts engine
|
|
545 |
\end{itemize}
|
|
546 |
|
|
547 |
\end{frame}}
|
|
548 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
549 |
|
|
550 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
551 |
\mode<presentation>{
|
|
552 |
\begin{frame}[c]
|
|
553 |
\frametitle{Challenge-Response Protokol}
|
|
554 |
|
|
555 |
\begin{center}
|
|
556 |
\bl{\begin{tabular}{l}
|
|
557 |
$E \;\text{says}\; N$\hfill(start)\\
|
|
558 |
$E \;\text{sends}\; T : N$\hfill(challenge)\\
|
|
559 |
$(T \;\text{says}\; N) \Rightarrow (T \;\text{sends}\; E : \{N\}_K \wedge$\\
|
|
560 |
\hspace{3.5cm} $T \;\text{sends}\; E : \text{Id}(T))$\;\;\;\hfill(response)\\
|
|
561 |
$T \;\text{says}\; K$\hfill(key)\\
|
|
562 |
$T \;\text{says}\; \text{Id}(T)$\hfill(identity)\\
|
|
563 |
$(E \;\text{says}\; \{N\}_K \wedge E \;\text{says}\; \text{Id}(T)) \Rightarrow$\\
|
|
564 |
\hspace{5cm}$ \text{start\_engine}(T)$\hfill(engine)\\
|
|
565 |
\end{tabular}}
|
|
566 |
\end{center}\bigskip
|
|
567 |
|
|
568 |
\bl{$\Gamma \vdash \text{start\_engine}(T)$}?
|
|
569 |
\end{frame}}
|
|
570 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
571 |
|
|
572 |
\end{document}
|
|
573 |
|
|
574 |
%%% Local Variables:
|
|
575 |
%%% mode: latex
|
|
576 |
%%% TeX-master: t
|
|
577 |
%%% End:
|
|
578 |
|