thesis/macros.tex

114 lines
4.3 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-04-12 16:42:39 +00:00
\newcommand{\ZKAoK}{\textsf{ZKAoK}\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-04-06 13:46:55 +00:00
%% Common
\newcommand{\Setup}{\ensuremath{\mathsf{Setup}}\xspace}
\newcommand{\Keygen}{\ensuremath{\mathsf{Keygen}}\xspace}
2018-04-10 07:20:19 +00:00
\newcommand{\param}{\ensuremath{\mathsf{par}}\xspace}
2018-04-04 16:46:37 +00:00
%% ZK
\newcommand{\trans}{\textsf{trans}\xspace}
\newcommand{\cmt}{\textsf{cmt}\xspace}
2018-04-06 13:46:55 +00:00
\newcommand{\com}{\ensuremath{\mathsf{com}}\xspace}
2018-04-04 16:46:37 +00:00
\newcommand{\chall}{\textsf{chall}\xspace}
\newcommand{\rsp}{\textsf{response}\xspace}
2018-04-06 13:46:55 +00:00
\newcommand{\extr}{\textsf{extract}\xspace}
\newcommand{\Commit}{\ensuremath{\mathsf{Commit}}\xspace}
\newcommand{\Verify}{\ensuremath{\mathsf{Verify}}\xspace}
\newcommand{\open}{\ensuremath{\mathsf{open}}\xspace}
\newcommand{\Open}{\textsf{Open}\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-04-06 13:46:55 +00:00
\newcommand{\ISIS}{\ensuremath{\mathsf{ISIS}}\xspace}
\newcommand{\SIS}{\ensuremath{\mathsf{SIS}}\xspace}
\newcommand{\LWE}{\ensuremath{\mathsf{LWE}}\xspace}
2018-01-23 14:35:39 +00:00
\newcommand{\SIVP}{\ensuremath{\textsf{SIVP}_\gamma}\xspace}
2018-04-06 13:46:55 +00:00
%% Codes
\newcommand{\SDP}{\ensuremath{\mathsf{SDP}}\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}
2018-04-11 15:34:59 +00:00
\newcommand{\Expt}{\ensuremath{\mathbf{Exp}}\xspace}
2018-02-08 18:11:48 +00:00
\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-04-11 15:34:59 +00:00
\newcommand{\Proba}[1]{\ensuremath{\Pr\left[#1\right]}\xspace}
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}
2018-04-10 14:48:01 +00:00
\newcommand{\U}{\ensuremath{\mathcal U}}
2017-12-19 14:25:47 +00:00
% Sets
%% Usual sets
2018-04-06 13:46:55 +00:00
\newcommand{\FF}{\xspace\ensuremath{\mathbb{F}}\xspace}
2017-12-19 14:25:47 +00:00
\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-04-10 07:20:19 +00:00
\newcommand{\nbit}{\xspace\ensuremath{\{-1,0,1\}}\xspace}
\newcommand{\permutations}{\ensuremath{\mathfrak S}\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
2018-04-11 15:34:59 +00:00
% Primitives
%% Dynamic Group Signatures
\newcommand{\crt}{\mathsf{cert}}
\newcommand{\scr}{\mathsf{sec}}
\newcommand{\usk}{\mathsf{usk}}
\newcommand{\upk}{\mathsf{upk}}
\newcommand{\Ngs}{{N_\mathsf{gs}}}
\newcommand{\gspk}{\mathcal{Y}}
\newcommand{\join}{\mathsf{J}}
\newcommand{\Sign}{\mathsf{Sign}}
\newcommand{\user}{\mathsf{user}}
\newcommand{\users}{\mathsf{users}}
\newcommand{\GM}{\mathsf{GM}}
\newcommand{\OA}{\mathsf{OA}}
\newcommand{\ok}{\mathsf{ok}}
\newcommand{\transcripts}{\mathsf{transcripts}}
\newcommand{\transcript}{\mathsf{transcript}}
\newcommand{\trace}{\mathsf{trace}}
\newcommand{\ajoin}{\mathsf{a}\textrm{-}\mathsf{join}}
\newcommand{\bjoin}{\mathsf{b}\textrm{-}\mathsf{join}}
\newcommand{\pjoin}{\mathsf{p}\textrm{-}\mathsf{join}}
\newcommand{\interface}{\mathcal{I}}
2018-04-12 16:42:39 +00:00
\newcommand{\ssigma}{\boldsymbol{\sigma}\xspace}
2018-04-11 15:34:59 +00:00
2018-02-14 13:04:36 +00:00
% Other
\newcommand{\TODO}{\textbf{\textcolor{red}{TODO}}}
2018-04-11 15:34:59 +00:00