From 6796994195c6e97dd45df15663b3a3ba7c31131a Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Thu, 8 Feb 2018 19:11:48 +0100 Subject: [PATCH] Some crypto macros --- macros.tex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macros.tex b/macros.tex index 517f161..93889e6 100644 --- a/macros.tex +++ b/macros.tex @@ -1,4 +1,4 @@ -\usepackage[asymptotics,mm]{cryptocode} +\usepackage[asymptotics,mm,notions,adversary]{cryptocode} % Layout \newcommand{\scbf}[1]{\noindent\textbf{\textsc{#1}}} @@ -14,6 +14,7 @@ \newcommand{\redto}{\ensuremath{\preceq_P}} %% Primitives \newcommand{\NIZK}{\textsf{NIZK}\xspace} +\newcommand{\PKE}{\textsf{PKE}\xspace} % Assumptions/Problems %% Pairings @@ -27,6 +28,9 @@ %% Models \newcommand{\UC}{\textrm{UC}\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}