forked from tamarin-prover/manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatex_macros
66 lines (53 loc) · 1.77 KB
/
latex_macros
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fix some incompatibilities between Mathjax and Latex
\ifxetex
% spacing
\newcommand{\nhspace}{}
% ampersand escaping
\newcommand{\autognp}{\textsf{AutoG\&P}}
\else
\newcommand{\nhspace}{\!}
\newcommand{\autognp}{\textsf{AutoG&P}}
\fi
% amper
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tool names
\newcommand{\easycrypt}{\textsf{EasyCrypt}}
\newcommand{\cryptoverif}{\textsf{CryptoVerif}}
\newcommand{\proverif}{\textsf{ProVerif}}
\newcommand{\scyther}{\textsf{Scyther}}
\newcommand{\tamarin}{\textsf{Tamarin}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bilinear groups
\newcommand{\GG}{\mathbb{G}}
\newcommand{\FF}{\mathbb{F}}
\newcommand{\Fq}{\mathbb{F}_q}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adversaries, simulators
\newcommand{\Adv}{\mathcal{A}}
\newcommand{\Sim}{\mathcal{S}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Probability expressions
\newcommand{\samp}[2]{#1 \leftarrow\!\!\!\!\!^{\$}\ #2}
\newcommand{\call}[2]{#1 \leftarrow #2}
\newcommand{\ProbGame}[2]{%
Pr\left[
\begin{array}{l|l}
\begin{array}{l}%
#1
\end{array}%
&%
#2
\end{array}%
\right]}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% public key encryption
\newcommand{\dotsep}[2]{#1 . \nhspace #2}
\newcommand{\schemeProc}[2]{\mathsf{\dotsep{#1}{#2}}}
\newcommand{\pkeyGen}{\schemeProc{PKE}{keyGen}}
\newcommand{\penc}{\schemeProc{PKE}{enc}}
\newcommand{\pdec}{\schemeProc{PKE}{dec}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Assumptions and security definitions
\newcommand{\AdvDDH}{\Adv_{\mathsf{ddh}}}
\newcommand{\IndCpa}{\textsf{IND-CPA}}