Some crypto macros

This commit is contained in:
Fabrice Mouhartem 2018-02-08 19:11:48 +01:00
parent 9a1d9db1b7
commit 6796994195

View File

@ -1,4 +1,4 @@
\usepackage[asymptotics,mm]{cryptocode} \usepackage[asymptotics,mm,notions,adversary]{cryptocode}
% Layout % Layout
\newcommand{\scbf}[1]{\noindent\textbf{\textsc{#1}}} \newcommand{\scbf}[1]{\noindent\textbf{\textsc{#1}}}
@ -14,6 +14,7 @@
\newcommand{\redto}{\ensuremath{\preceq_P}} \newcommand{\redto}{\ensuremath{\preceq_P}}
%% Primitives %% Primitives
\newcommand{\NIZK}{\textsf{NIZK}\xspace} \newcommand{\NIZK}{\textsf{NIZK}\xspace}
\newcommand{\PKE}{\textsf{PKE}\xspace}
% Assumptions/Problems % Assumptions/Problems
%% Pairings %% Pairings
@ -27,6 +28,9 @@
%% Models %% Models
\newcommand{\UC}{\textrm{UC}\xspace} \newcommand{\UC}{\textrm{UC}\xspace}
\newcommand{\ROM}{\textsf{ROM}\xspace} \newcommand{\ROM}{\textsf{ROM}\xspace}
%% Experience/Games
\newcommand{\Exp}[2]{\ensuremath{\mathsf{Exp}^{#1}_{#2}}\xspace}
\newcommand{\advantage}[2]{\ensuremath{\mathrm{Advt}^{#1}_{#2}}\xspace}