thesis/macros.tex

66 lines
2.4 KiB
TeX
Raw Normal View History

2018-02-08 18:11:48 +00:00
\usepackage[asymptotics,mm,notions,adversary]{cryptocode}
2018-02-05 17:26:55 +00:00
% Layout
\newcommand{\scbf}[1]{\noindent\textbf{\textsc{#1}}}
2017-12-19 14:25:47 +00:00
% Abbreviations
%% Algorithms
\newcommand{\TrapGen}{\textsf{TrapGen}\xspace}
\newcommand{\ExtBasis}{\textsf{ExtBasis}\xspace}
2018-01-23 14:35:39 +00:00
\newcommand{\SampleR}{\textsf{SampleRight}\xspace}
\newcommand{\SampleL}{\textsf{SampleLeft}\xspace}
\newcommand{\GPVSample}{\textsf{GPVSample}\xspace}
2018-01-31 16:54:06 +00:00
%% Complexity
\newcommand{\NP}{\textsf{NP}\xspace}
\newcommand{\redto}{\ensuremath{\preceq_P}}
2018-02-08 11:35:23 +00:00
%% Primitives
2018-02-09 12:16:14 +00:00
\newcommand{\ZK}{\textsf{ZK}\xspace}
2018-02-08 11:35:23 +00:00
\newcommand{\NIZK}{\textsf{NIZK}\xspace}
2018-02-08 18:11:48 +00:00
\newcommand{\PKE}{\textsf{PKE}\xspace}
2018-02-10 14:32:00 +00:00
\newcommand{\OT}{\textsf{OT}\xspace}
2018-01-23 14:35:39 +00:00
% Assumptions/Problems
2018-01-27 20:27:06 +00:00
%% Pairings
2018-01-31 16:54:06 +00:00
\newcommand{\DLP}{\textsf{DLP}\xspace}
2018-01-27 20:27:06 +00:00
\newcommand{\DDH}{\textsf{DDH}\xspace}
\newcommand{\SXDH}{\textsf{SXDH}\xspace}
2018-03-20 10:06:46 +00:00
\newcommand{\SDL}{\textsf{SDL}\xspace}
2018-01-27 20:27:06 +00:00
%% Lattices
2018-01-23 14:35:39 +00:00
\newcommand{\SIS}{\textsf{SIS}\xspace}
\newcommand{\LWE}{\textsf{LWE}\xspace}
\newcommand{\SIVP}{\ensuremath{\textsf{SIVP}_\gamma}\xspace}
2018-01-30 08:53:33 +00:00
%% Models
2018-02-09 12:16:14 +00:00
\newcommand{\UC}{\textsf{UC}\xspace}
2018-02-07 14:28:02 +00:00
\newcommand{\ROM}{\textsf{ROM}\xspace}
2018-02-08 18:11:48 +00:00
%% Experience/Games
\newcommand{\Exp}[2]{\ensuremath{\mathsf{Exp}^{#1}_{#2}}\xspace}
\newcommand{\advantage}[2]{\ensuremath{\mathrm{Advt}^{#1}_{#2}}\xspace}
2018-02-09 12:16:14 +00:00
\newcommand{\oracle}[2]{\ensuremath{\mathcal O^{\,\mathsf{#1}(\,#2\,)}_{}}\xspace}
\newcommand{\ensemble}[1]{\ensuremath{\mathcal S_{\mathsf{#1}}^{}}\xspace}
2018-01-30 08:53:33 +00:00
2018-01-23 14:35:39 +00:00
2017-12-19 14:25:47 +00:00
% Operators
\newcommand{\sample}{\xspace\ensuremath{\hookleftarrow}\xspace}
\newcommand{\bigO}{\ensuremath{\mathcal{O}}}
2018-01-23 14:35:39 +00:00
\newcommand{\softO}{\ensuremath{\tilde{\mathcal{O}}}}
\newcommand{\Span}{\ensuremath{\mathrm{span}}\xspace}
2017-12-19 14:25:47 +00:00
% Sets
%% Usual sets
\newcommand{\RR}{\xspace\ensuremath{\mathbb{R}}\xspace}
\newcommand{\ZZ}{\xspace\ensuremath{\mathbb{Z}}\xspace}
2018-02-02 15:34:54 +00:00
\newcommand{\NN}{\xspace\ensuremath{\mathbb{N}}\xspace}
2017-12-19 14:25:47 +00:00
\newcommand{\CC}{\xspace\ensuremath{\mathbb{C}}\xspace}
\newcommand{\QQ}{\xspace\ensuremath{\mathbb{Q}}\xspace}
2018-01-23 14:35:39 +00:00
\newcommand{\Zq}{\xspace\ensuremath{\mathbb{Z}_q}\xspace}
2018-01-31 16:54:06 +00:00
\newcommand{\bit}{\xspace\ensuremath{\{0,1\}}\xspace}
2018-01-27 20:27:06 +00:00
%% Pairings
2018-01-23 14:35:39 +00:00
\newcommand{\Zp}{\xspace\ensuremath{\mathbb{Z}_p}\xspace}
\newcommand{\GG}{\xspace\ensuremath{\mathbb{G}}\xspace}
2018-02-09 12:16:14 +00:00
\newcommand{\Gh}{\xspace\ensuremath{\widehat{\mathbb{G}}}\xspace}
2018-01-23 14:35:39 +00:00
\newcommand{\GT}{\xspace\ensuremath{\mathbb{G}_T}\xspace}
\newcommand{\atob}[2]{\xspace\ensuremath{\{#1,\ldots,\#2\}}}
2018-02-14 13:04:36 +00:00
% Other
\newcommand{\TODO}{\textbf{\textcolor{red}{TODO}}}