Set up new SMPC use case chapter

This commit is contained in:
jaseg 2025-04-28 11:54:45 +02:00
parent 9001971f52
commit 50b63370d7
7 changed files with 2229 additions and 46 deletions

3
.gitignore vendored
View file

@ -3,8 +3,11 @@
*.run.xml
*.bcf
*.blg
*.bbl
*.mtc
*.mtc[0-9]*
*.maf
*.out
*.toc
version.tex
*-converted-to.pdf

37
Chapter_Makefile Normal file
View file

@ -0,0 +1,37 @@
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
VERSION_STRING := $(shell git describe --always --tags --long)
all: clean chapter.pdf
# We need three runs for biblatex's defernumbers
%.pdf: %.tex ../main.bib version.tex
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
.PHONY: preview
preview:
biber chapter || true
pdflatex -shell-escape '\def\thesispreviewmode{}\input{chapter.tex}'
version.tex: chapter.tex
echo "${VERSION_STRING}" > $@
.PHONY: update-figures
update-figures:
@python figures/update_figures.py figures
.PHONY: clean
clean:
rm -f **.aux **.bbl **.bcf **.log **.blg
rm -f **.out **.run.xml **/texput.log

View file

@ -1,2 +0,0 @@
version.tex
*-converted-to.pdf

View file

@ -1,37 +0,0 @@
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
VERSION_STRING := $(shell git describe --always --tags --long)
all: clean chapter.pdf
# We need three runs for biblatex's defernumbers
%.pdf: %.tex ../main.bib version.tex
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
biber $*
pdflatex -shell-escape $<
.PHONY: preview
preview:
biber chapter || true
pdflatex -shell-escape '\def\thesispreviewmode{}\input{chapter.tex}'
version.tex: chapter.tex
echo "${VERSION_STRING}" > $@
.PHONY: update-figures
update-figures:
@python figures/update_figures.py figures
.PHONY: clean
clean:
rm -f **.aux **.bbl **.bcf **.log **.blg
rm -f **.out **.run.xml **/texput.log

1
chapter-qkd/Makefile Symbolic link
View file

@ -0,0 +1 @@
../Chapter_Makefile

1
chapter-smpc/Makefile Symbolic link
View file

@ -0,0 +1 @@
../Chapter_Makefile

193
chapter-smpc/chapter.tex Normal file
View file

@ -0,0 +1,193 @@
\documentclass[11pt,a4paper,notitlepage,twoside]{report}
\usepackage[ngerman, english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, top=3cm, bottom=3.5cm, inner=3.5cm, outer=5cm, marginpar=3.8cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{eurosym}
\usepackage{wasysym}
\usepackage{extdash}
\usepackage{amsthm}
\usepackage{mwe}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{tikz}
\usepackage{mathtools}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{fancybox}
\usepackage{fancyhdr}
\usepackage[binary-units,per-mode=fraction]{siunitx}
\usepackage[hidelinks]{hyperref}
\usepackage{commath}
\usepackage{graphicx,color}
\usepackage{ccicons}
\usepackage{subcaption}
\usepackage{float}
\usepackage{footmisc}
\usepackage{array}
\usepackage[underline=false]{pgf-umlsd}
\usetikzlibrary{calc}
\usepackage{epstopdf}
\usepackage{pdfpages}
\usepackage{etoolbox}
\usepackage{catchfile}
\usepackage{minitoc}
\usepackage{minted} % pygmentized source code
%\usepackage[pdftex]{graphicx,color}
%\usepackage{showframe} % Useful for page layout debugging
\DeclareSIUnit{\baud}{Bd}
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
\DeclarePairedDelimiter{\paren}{(}{)}
\usepackage[
backend=biber,
style=numeric,
natbib=true,
url=false,
doi=true,
eprint=false,
% Make the split online / other resource bibliographies behave
defernumbers=true,
]{biblatex}
\addbibresource{../main.bib}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=doi,final]
\step[fieldset=isbn,null]
\step[fieldset=issn,null]
\step[fieldset=url,null]
}
\map{
\step[fieldsource=isbn,final]
\step[fieldset=issn,null]
\step[fieldset=url,null]
}
}
}
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
% Re-define heading formats to force single line spacing
\titleformat{\section}{\normalfont\large\bfseries\singlespacing}{\thesection}{1em}{}
\titleformat{\subsection}{\normalfont\large\bfseries\singlespacing}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\normalfont\large\bfseries\singlespacing}{\thesubsubsection}{1em}{}
\newcommand{\degree}{\ensuremath{^\circ}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\definecolor{todoboxcolor}{RGB}{251 224 252}
\pagestyle{fancy}
\fancyhead[C]{}
\fancyhead[ER]{\footnotesize%
\ifdefined\thesispreviewmode %
(draft \texttt{\input{version.tex}\unskip}) %
\fi %
\leftmark}
\fancyhead[OL]{\footnotesize\rightmark}
\fancyhead[EL,OR]{\thepage}
\fancyfoot[LCR]{}
\fancypagestyle{plain}{%
\fancyhf{}%
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0pt}%
}
\raggedbottom
\renewcommand{\chaptermark}[1]{\markboth{Chapter \thechapter: #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\addtolength{\headwidth}{-1cm}
\newcommand{\todo}[1]{
\ifdefined\thesispreviewmode
\marginpar{
\setlength{\fboxsep}{2mm}
\shadowbox{
\parbox{3cm}{
\singlespacing
\raggedright
\textsf{
\small\textbf{To do}\\
\footnotesize#1
}
}
}
}
\fi
}
\newcommand{\todoplaceholder}[1]{\textbf{TODO}\todo{#1}}
% https://tex.stackexchange.com/questions/30720/footnote-without-a-marker
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
\newcommand{\figurepath}{figures}
\graphicspath{{\figurepath}}
\newcommand{\figureattrib}[1]{%
\input{\figurepath/#1.latex_meta} %
\scriptsize
\ifdefined\thesispreviewmode\resourcestate\ \resourcescale\\\fi%
Resource: %
\texttt{\resourcerepo/\resourcepath} %
rev \texttt{\resourcerev} %
(\underline{\href{\resourceurl}{link}})%
}
\newcommand{\draftgraphics}{\ifdefined\thesispreviewmode\textcolor{red}{\bfseries Not final graphics. }\fi}
\newcommand{\camerareadygraphics}{\ifdefined\thesispreviewmode Camera-ready graphics. \fi}
\newcommand{\scaledgraphics}[1]{\ifdefined\thesispreviewmode scaled-#1\else#1\fi}
\newcommand{\imgsource}[4]{\scriptsize%
Image source: #1, #2 (\underline{\href{#4}{link}}). %
Licensed #3.}
\hyphenation{a-me-na-ble}
\begin{document}
\dominitoc
\faketableofcontents
\chapter{Secure Multiparty Computation in Scalable Hardware Security Modulese}
\ifdefined\thesispreviewmode
{\Large \textbf{Draft build}, git revision \texttt{\input{version.tex}}}
\fi
\minitoc
\newpage
\setstretch{1.3}
\section{Trust by Committee}
\section{Outlook}
\clearpage % clearpage flushes all figures. force this here so we don't get figures floating in between references.
% TODO when breaking this out into a template for building both the whole thesis and individual chapters, we have to
% decide whether we want to keep the bibliography per-chapter or only once for the whole thesis. In the latter case, we
% probably want to replace subbibintoc with bibintoc, or add a custom "bibliography" chapter and adjust the second
% bibliography's heading
\newrefcontext[labelprefix={W}]
\printbibliography[type={online},title={Web sources},heading=subbibintoc]
\newrefcontext
\printbibliography[nottype={online},resetnumbers,heading=subbibintoc]
\appendix
\end{document}

2001
main.bib

File diff suppressed because one or more lines are too long