Migrate back to Git LFS
This commit is contained in:
parent
6b34b62aa2
commit
4b6498ede3
237 changed files with 36953 additions and 0 deletions
61
misc/macros/classhandout.sty
Normal file
61
misc/macros/classhandout.sty
Normal file
|
@ -0,0 +1,61 @@
|
|||
\usepackage[pdftitle=Applied Cryptography,pdflang=en-US,colorlinks=true,linkcolor=OliveGreen,urlcolor=OliveGreen,citecolor=OliveGreen,bookmarksopen=true]{hyperref}
|
||||
\usepackage{xurl,hyperxmp,graphicx,array,fancyhdr,bbding,pmboxdraw,listings,acronym,amsthm,bookmark,zref-totpages,xcolor,tikz,titlesec,enumitem,amsmath}
|
||||
\usepackage[inner=2.50cm,outer=2.50cm,top=2.50cm,bottom=2.50cm]{geometry}
|
||||
\usepackage{microtype}
|
||||
\renewcommand{\familydefault}{\sfdefault}
|
||||
\definecolor{OliveGreen}{HTML}{3F7E31}
|
||||
\definecolor{EarthBrown}{HTML}{7D4C31}
|
||||
\definecolor{LightestGray}{HTML}{EEEEEE}
|
||||
\definecolor{DarkGray}{HTML}{5F6368}
|
||||
\titleformat{\section}
|
||||
{\normalfont\Large\bfseries\color{OliveGreen}}
|
||||
{\thesection}{1em}{}
|
||||
\titleformat{\subsection}
|
||||
{\normalfont\large\bfseries\color{EarthBrown}}
|
||||
{\thesubsection}{1em}{}
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\renewcommand{\headrulewidth}{0.3pt}
|
||||
\renewcommand{\footrulewidth}{0.3pt}
|
||||
\lhead{\textcolor{OliveGreen}{Applied Cryptography}}
|
||||
\rhead{\textcolor{DarkGray}{American University of Beirut}}
|
||||
\lfoot{\textcolor{DarkGray}{CMPS 297AD/396AI, Fall 2025}}
|
||||
\rfoot{\textcolor{DarkGray}{Page \thepage\ of \ztotpages}}
|
||||
\tcbsetforeverylayer{colframe=OliveGreen!20!white,colback=LightestGray,boxrule=0.5pt,arc=2mm,boxsep=5pt,left=6pt,right=6pt,top=6pt,bottom=6pt}
|
||||
\thispagestyle{empty}
|
||||
\setlist{itemsep=0em}
|
||||
|
||||
\newcommand{\classhandoutheader}{
|
||||
\begin{tikzpicture}[remember picture, overlay]
|
||||
\fill[OliveGreen!10!white] (current page.north west) rectangle ([yshift=-5cm]current page.north east);
|
||||
\end{tikzpicture}
|
||||
|
||||
\vspace*{-1.5cm}
|
||||
\noindent
|
||||
\begin{minipage}[c]{0.35\textwidth}
|
||||
\centering
|
||||
\includegraphics[width=2.5in]{\aublogopath}
|
||||
\end{minipage}
|
||||
\begin{minipage}[c]{0.65\textwidth}
|
||||
\begin{flushright}
|
||||
\vspace{0.3cm}
|
||||
{\fontsize{24}{28}\selectfont\textcolor{OliveGreen}{Applied Cryptography}}
|
||||
|
||||
\vspace{0.2cm}
|
||||
{\large\textcolor{DarkGray}{CMPS 297AD/396AI, Fall 2025}}
|
||||
\vspace{0.2cm}
|
||||
\end{flushright}
|
||||
\end{minipage}
|
||||
|
||||
\vspace{0.8cm}
|
||||
\begin{tcolorbox}[colframe=OliveGreen!70!white,colback=white,arc=1mm]
|
||||
\begin{center}
|
||||
\begin{tabular}{ll}
|
||||
\textbf{Instructor:} Nadim Kobeissi \quad\quad\quad\quad\quad \textbf{Website:} \url{https://appliedcryptography.page}
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\end{tcolorbox}
|
||||
|
||||
\setlength{\unitlength}{1in}
|
||||
\renewcommand{\arraystretch}{1.5}
|
||||
}
|
98
misc/macros/joc.sty
Normal file
98
misc/macros/joc.sty
Normal file
|
@ -0,0 +1,98 @@
|
|||
\ProvidesPackage{joc}[2025/05/04 v1.0 Nadim's Joy of Cryptography Style Macros]
|
||||
|
||||
\RequirePackage{xcolor}
|
||||
\RequirePackage[auto]{contour}
|
||||
\RequirePackage{varwidth,tikz}
|
||||
\RequirePackage[most]{tcolorbox}
|
||||
\usetikzlibrary{shadows, arrows.meta, positioning, shapes, calc, fit, shapes.geometric}
|
||||
|
||||
\definecolor{jocbitcolor}{HTML}{A91716}
|
||||
\definecolor{joctitlecolor}{HTML}{E5E5E5}
|
||||
|
||||
% Macro for state-separable proof style subroutines
|
||||
\newcommand{\sssubroutine}[4]{
|
||||
\begin{center}
|
||||
\begin{tikzpicture}[box/.style={rectangle, draw, align=left, fill=white, inner sep=7pt, scale=#4, execute at begin node=\setlength{\baselineskip}{1.5em}}]
|
||||
\node[box]{
|
||||
\underline{\func{#1}{#2}}: \\
|
||||
#3
|
||||
};
|
||||
\end{tikzpicture}
|
||||
\end{center}
|
||||
}
|
||||
|
||||
\newcommand{\sslibrarysubroutine}[4]{
|
||||
\begin{tikzpicture}[box/.style={rectangle, align=left, inner sep=0pt, outer sep=0pt, fill=white, scale=#4, execute at begin node=\setlength{\baselineskip}{1.5em}, inner sep=0pt, outer sep=0pt}]
|
||||
\node[box]{
|
||||
\underline{\func{#1}{#2}}: \\
|
||||
#3
|
||||
};
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\newcommand{\prob}[1]{\ensuremath{\Pr\bigl[\ensuremath{#1}\bigr]}}
|
||||
\newcommand{\lib}[2]{\ensuremath{\mathcal{L}^{#1}_\text{#2}}}
|
||||
\newcommand{\prog}[1]{\ensuremath{\mathcal{A}_\text{#1}}}
|
||||
\newcommand{\link}{\ensuremath{\diamond}}
|
||||
\newcommand{\interchangeable}[1]{\ensuremath{\overset{\ensuremath{#1}}{\equiv}}}
|
||||
\newcommand{\bit}[1]{\textcolor{jocbitcolor}{\texttt{#1}}}
|
||||
\newcommand{\bits}{\ensuremath{\{\bit{0}, \bit{1}\}}}
|
||||
\newcommand{\func}[2]{\ensuremath{\textrm{\textsc{#1}}\scalebox{1.05}{\ensuremath{(#2)}}}}
|
||||
|
||||
\newtcolorbox{sslibrarybox}[2][]{
|
||||
colback=white,
|
||||
colframe=black,
|
||||
colbacktitle=joctitlecolor,
|
||||
coltitle=black,
|
||||
enhanced,hbox,
|
||||
toptitle=1mm,
|
||||
bottomtitle=1mm,
|
||||
boxrule=0.5pt,
|
||||
titlerule=0pt,
|
||||
left=1mm,
|
||||
right=1mm,
|
||||
top=2mm,
|
||||
bottom=2mm,
|
||||
titlerule style=joctitlecolor,
|
||||
sharp corners,
|
||||
halign title=center,
|
||||
title={#2},
|
||||
#1
|
||||
}
|
||||
|
||||
\newcommand{\sslibrary}[4]{
|
||||
\begin{sslibrarybox}[scale=#4]{\lib{#1}{#2}}
|
||||
\begin{varwidth}{\textwidth}
|
||||
#3
|
||||
\end{varwidth}
|
||||
\end{sslibrarybox}
|
||||
}
|
||||
|
||||
\newcommand{\ssprogram}[3]{
|
||||
\begin{sslibrarybox}[scale=#3]{\prog{#1}}
|
||||
\begin{tikzpicture}[box/.style={rectangle, align=left, fill=white, inner sep=0pt, outer sep=0pt, execute at begin node=\setlength{\baselineskip}{1.5em}}]
|
||||
\node[box]{
|
||||
#2
|
||||
};
|
||||
\end{tikzpicture}
|
||||
\end{sslibrarybox}
|
||||
}
|
||||
|
||||
\newcommand{\sslinked}[3]{
|
||||
\begin{tikzpicture}[baseline]
|
||||
\node[inner sep=0pt, outer sep=0pt] (left) {\begin{varwidth}{\textwidth}#1\end{varwidth}};
|
||||
\node[inner sep=0pt, outer sep=0pt, anchor=west] (middle) at (left.east) {\begin{varwidth}{\textwidth}{\large\ensuremath{\ #2\ }}\end{varwidth}};
|
||||
\node[inner sep=0pt, outer sep=0pt, anchor=west] (right) at (middle.east) {\begin{varwidth}{\textwidth}#3\end{varwidth}};
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\contourlength{1.2pt}
|
||||
\newcommand{\hl}[1]{%
|
||||
\relax\ifmmode%
|
||||
{}%
|
||||
\contour{hlbg}{\textcolor{hlfg}{${} #1 {}$}}%
|
||||
{}%
|
||||
\else%
|
||||
\contour{hlbg}{\textcolor{hlfg}{#1}}%
|
||||
\fi%
|
||||
}
|
4173
misc/macros/msc5.sty
Normal file
4173
misc/macros/msc5.sty
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue