add macros

This commit is contained in:
2018-01-31 17:54:06 +01:00
parent e1515143ff
commit 1d8ad87930
2 changed files with 9 additions and 5 deletions

View File

@ -1,17 +1,18 @@
\usepackage{cryptocode}
\usepackage{complexity}
\usepackage[asymptotics,mm]{cryptocode}
% Abbreviations
%% Usual
\newcommand{\PPT}{\textsf{PPT}\xspace}
%% Algorithms
\newcommand{\TrapGen}{\textsf{TrapGen}\xspace}
\newcommand{\ExtBasis}{\textsf{ExtBasis}\xspace}
\newcommand{\SampleR}{\textsf{SampleRight}\xspace}
\newcommand{\SampleL}{\textsf{SampleLeft}\xspace}
\newcommand{\GPVSample}{\textsf{GPVSample}\xspace}
%% Complexity
\newcommand{\NP}{\textsf{NP}\xspace}
\newcommand{\redto}{\ensuremath{\preceq_P}}
% Assumptions/Problems
%% Pairings
\newcommand{\DLP}{\textsf{DLP}\xspace}
\newcommand{\DDH}{\textsf{DDH}\xspace}
\newcommand{\SXDH}{\textsf{SXDH}\xspace}
%% Lattices
@ -36,6 +37,7 @@
\newcommand{\CC}{\xspace\ensuremath{\mathbb{C}}\xspace}
\newcommand{\QQ}{\xspace\ensuremath{\mathbb{Q}}\xspace}
\newcommand{\Zq}{\xspace\ensuremath{\mathbb{Z}_q}\xspace}
\newcommand{\bit}{\xspace\ensuremath{\{0,1\}}\xspace}
%% Pairings
\newcommand{\Zp}{\xspace\ensuremath{\mathbb{Z}_p}\xspace}
\newcommand{\GG}{\xspace\ensuremath{\mathbb{G}}\xspace}