X-Git-Url: https://git.distorted.org.uk/~mdw/doc/wrestlers/blobdiff_plain/8b8b883978ff98f5d9edc60f1bf6771b3d66b617..32609df3198ff2b57dc418199e863c3e16ffa8f0:/wrslides.tex

diff --git a/wrslides.tex b/wrslides.tex
index ae50308..487d113 100644
--- a/wrslides.tex
+++ b/wrslides.tex
@@ -1,29 +1,62 @@
-\documentclass{wrslides}
+\documentclass[t]{beamer}
+\usetheme{Madrid}
+\usefonttheme[stillsansseriflarge, stillsansserifsmall]{serif}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[palatino, helvetica, courier, maths = palatino]{mdwfonts}
+\usepackage{tikz}
+\usepackage{crypto, mdwmath}
+
+\newcommand{\E}{{\mathcal{E}}}
+
+\errorcontextlines=999
+
+\def\Wident{\Xid{W}{ident}}
+\def\Wkx{\Xid{W}{kx}}
+\def\Nupto#1{\{0, 1, \ldots, #1 - 1\}}
+\def\Bin{\{0, 1\}}
+\let\op\star
+\let\le\leqslant
+\let\ge\geqslant
+\let\epsilon\varepsilon
+
+\title{The Wrestlers Protocol}
+\subtitle{A simple, practical, secure, deniable protocol for key-exchange}
+\author{Mark Wooding}
+
+\newdimen\boxwd
+\newenvironment{protocol}[2]{%
+  \small
+  \begin{tikzpicture}[x = 1cm, y = -\baselineskip]
+    \tikzstyle{thoughts} = [text width = #1cm - 4mm, anchor = north]
+    \tikzstyle{alice} = [xshift = 12cm - #1cm/2]
+    \tikzstyle{bob} = [xshift = #1cm/2]
+    \tikzstyle{other} = [text = blue]
+    \tikzstyle{message} =
+      [xshift = #1cm + 2mm, x = 11.6cm - #1cm*2, draw, font = \footnotesize]
+    \draw [rounded corners, fill = blue!20]
+          (0, 0) rectangle +(#1, #2);
+    \draw [rounded corners, fill = red!20]
+          (12cm - #1cm, 0) rectangle +(#1, #2);
+    \path node [alice] at (0, 1) {\normalsize Alice}
+          node [bob] at (0, 1) {\normalsize Bob}
+          ;
+}{%
+  \end{tikzpicture}
+}
 
 \begin{document}
 
-\begin{slide}
-  \emptyslide
-  \hrule height0pt
-  \vfill
-  \centerline{\Huge\sffamily\bfseries The Wrestlers Protocol}
-  \medskip
-  \centerline{\itshape A simple, practical, secure, deniable protocol for
-    key-exchange}
-  \vskip 1in
-  \tabskip=0ptplus1fil
-  \halign to \linewidth{\tabskip=0pt\hfil\ignorespaces#\unskip\cr
-    Mark Wooding\cr
-    \texttt{mdw@distorted.org.uk}\cr}
-  \bigskip
-\end{slide}
-
-\include{wr-backg}
+\frame{\titlepage}
+\frame{\tableofcontents}
+
+%%%\include{wr-backg}
 \include{wr-main}
 
 \end{document}
 
-%%% Local Variables: 
+%%% Local Variables:
 %%% mode: latex
 %%% TeX-master: t
-%%% End: 
+%%% TeX-PDF-mode: t
+%%% End:
