move the noboltai image into its own .tex file
[ach-master.git] / src / applied-crypto-hardening.tex
1 %%% LaTeX Template: Two column article
2 %%%
3 %%% Source: http://www.howtotex.com/
4 %%% Feel free to distribute this template, but please keep to referal to http://www.howtotex.com/ here.
5 %%% Date: February 2011
6
7 %%% Preamble
8 \documentclass[ DIV=calc,%
9                                 paper=a4,%
10                                 fontsize=9pt,%
11                                 %onecolumn]{scrartcl}                                           % KOMA-article class
12                                 onecolumn]{scrreprt}                                            % KOMA-article class
13                                 %onecolumn]{report}                                             % KOMA-article class
14
15 \usepackage{lipsum}                                                                                                     % Package to create dummy text
16
17
18
19 \usepackage[english]{babel}                                                                             % English language/hyphenation
20 \usepackage[protrusion=true,expansion=true]{microtype}                          % Better typography
21 \usepackage{amsmath,amsfonts,amsthm}                                    % Math packages
22 \usepackage[pdftex]{graphicx}                                           % Enable pdflatex 
23 %\usepackage[svgnames]{xcolor}                                                                  % Enabling colors by their 'svgnames'
24 \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}        % Custom captions under/above floats
25 \usepackage{epstopdf}                                                                                           % Converts .eps to .pdf
26 \usepackage{subfig}                                                                                                     % Subfigures
27 \usepackage{booktabs}                                                                                           % Nicer tables
28 \usepackage{fix-cm}                                                                                                     % Custom fontsizes
29
30 \usepackage[usenames,dvipsnames]{color}
31 \usepackage{float}
32 \usepackage{subfig}
33 %\usepackage{tikz}
34 \usepackage{acronym}
35 \usepackage{amsthm}
36 \usepackage{fancyvrb}
37 \usepackage{listings}
38 \usepackage{longtable}
39
40 %% Epigraph patching
41 \usepackage{epigraph}
42 % \epigraphsize{\small}% Default
43 \setlength\epigraphwidth{8cm}
44 \setlength\epigraphrule{0pt}
45 \usepackage{etoolbox}
46 \makeatletter
47 \patchcmd{\epigraph}{\@epitext{#1}}{\itshape\@epitext{#1}}{}{}
48 \makeatother
49
50
51
52 \usepackage{gitinfo}
53
54 % custom changes:
55 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
56 \usepackage{placeins}
57 \usepackage{draftwatermark}
58
59 % human tables
60 \usepackage{booktabs}
61 \renewcommand{\arraystretch}{1.25}
62
63 % side box
64 \usepackage{wrapfig}
65 %\usepackage{tcolorbox}
66 \newenvironment{WrapText}[1][r]
67   {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
68   {\endtcolorbox\endwrapfigure}
69
70 % Add text symbols
71 \usepackage{pifont}
72 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
73 \newcommand{\no}{\textcolor{red}{\ding{55}}}
74
75 % human tables
76 \usepackage{booktabs}
77
78 \renewcommand{\arraystretch}{1.25}
79
80 \definecolor{green}{RGB}{32,113,10}
81 \definecolor{orange}{RGB}{251,111,16}
82 \definecolor{red}{RGB}{247,56,0}
83 \definecolor{blue}{RGB}{0,28,128}
84 \definecolor{lightgreen}{RGB}{187,218,216}
85 \definecolor{intersectgreen}{RGB}{103,133,155}
86 \definecolor{darkblue}{RGB}{76,87,117}
87
88 \bibliographystyle{alphalink}
89
90 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
91 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
92 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
93 \definecolor{lightlightgray}{gray}{0.9}
94
95 \usepackage{titlesec}
96 %\allsectionsfont{\color{darkblue}\itshape\underline}
97 %\sectionfont{\color{darkblue}\itshape\selectfont}
98 %\subsectionfont{\color{darkblue}\itshape\selectfont}
99 \renewcommand*\sectfont{\sffamily\color{darkblue}\mdseries}
100 %\renewcommand*\sectfont{\rmfamily\mdseries\itshape}
101
102
103 % makes default font sans-serif
104  \renewcommand{\familydefault}{\sfdefault}
105
106 % make font Open Sans
107 % \usepackage{opensans}
108 \usepackage[defaultsans]{opensans}
109
110 % changes font encoding to T1
111 % \usepackage[T1]{fontenc}
112 % \usepackage{textcomp}
113
114 \lstset{
115 %language=Bash,                             % Code langugage
116 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
117 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
118 commentstyle=\color{gray},              % Comments font
119 %numbers=left,                           % Line nums position
120 %numberstyle=\tiny,                      % Line-numbers fonts
121 %stepnumber=1,                           % Step between two line-numbers
122 %numbersep=5pt,                          % How far are line-numbers from code
123 backgroundcolor=\color{lightlightgray}, % Choose background color
124 frame=none,                             % A frame around the code
125 tabsize=2,                              % Default tab size
126 captionpos=b,                           % Caption-position = bottom
127 breaklines=true,                        % Automatic line breaking?
128 breakatwhitespace=false,                % Automatic breaks only at whitespace?
129 showspaces=false,                       % Dont make spaces visible
130 showtabs=false,                         % Dont make tabls visible
131 columns=fixed,                          % Column format
132 morekeywords={__global__, __device__},  % 
133 }
134
135
136 %% \todo{} command.
137 %
138 % Outputs red TODOs in the document. Requires \usepackage{color}.
139 %
140 % Usage: \todo{Document the TODO command.}
141 %
142 % Comment out second line to disable.
143 \newcommand{\todo}[1]{}
144 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
145
146
147 %%% Custom sectioning (sectsty package)
148 \usepackage{sectsty}                                                                                                    % Custom sectioning (see below)
149 \allsectionsfont{%                                                                                                                      % Change font of al section commands
150         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
151         }
152
153 \sectionfont{%                                                                                                                          % Change font of \section command
154         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
155         }
156
157 % use more of the page
158 \usepackage{fullpage}
159
160 %%% Headers and footers
161 \usepackage{fancyhdr}                                                                                           % Needed to define custom headers/footers
162         \pagestyle{fancy}                                                                                                               % Enabling the custom headers/footers
163 \usepackage{lastpage}   
164
165 % Header (empty)
166 \lhead{}
167 \chead{}
168 \rhead{}
169 % Footer (you may change this to your own needs)
170 \lfoot{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
171 \cfoot{}
172 \rfoot{\footnotesize page \thepage\ of \pageref{LastPage}}      % "Page 1 of 2"
173 \renewcommand{\headrulewidth}{0.0pt}
174 \renewcommand{\footrulewidth}{0.4pt}
175
176
177
178 %%% Creating an initial of the very first character of the content
179 \usepackage{lettrine}
180 \newcommand{\initial}[1]{%
181      \lettrine[lines=3,lhang=0.3,nindent=0em]{
182                                 \color{darkblue}
183                                 {\textsf{#1}}}{}}
184
185
186
187 %%% Title, author and date metadata
188 \usepackage{titling}                                                                                                                    % For custom titles
189
190 \newcommand{\HorRule}{\color{darkblue}%                 % Creating a horizontal rule
191                                                                                 \rule{\linewidth}{1pt}%
192                                                                         }
193
194
195 \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule 
196                                 \fontsize{36}{36}  \color{darkblue} \selectfont 
197                                 }
198                         \title{Applied Crypto Hardening}% \\ \vskip 0.5em \large www.bettercrypto.org}
199 \posttitle{\par\end{flushleft}\vskip 0.5em}
200
201 \preauthor{\begin{flushleft}
202                                         \large \lineskip 0.5em  \color{intersectgreen}}
203
204                                         \author{Wolfgang Breyha, David Durvaux, Tobias Dussa, L. Aaron
205                                         Kaplan, Florian Mendel, Christian Mock, Manuel Koschuch, Adi
206                                         Kriegisch, Ulrich P\"oschl, Ramin Sabet, Berg San, Ralf Schlatterbeck, 
207                                         Thomas Schreck, Aaron Zauner, Pepi Zawodsky}
208 %\institute{
209 %FH Campus Wien
210 %\and
211 %VRVis
212 %\and
213 %CERT.at
214 %\and
215 %Karlsruhe Institute of Technology
216 %}
217
218
219 \setlength{\parindent}{0cm}
220
221 \postauthor{\footnotesize  \color{Black} 
222 \\ \vskip 0.5em  (University of Vienna, CERT.be, KIT-CERT, CERT.at, IAIK, coretec.at, FH Campus Wien, VRVis, MilCERT Austria, A-Trust, , Runtux.com, Friedrich-Alexander University Erlangen-Nuremberg, azet.org, maclemon.at)
223                                         \par\end{flushleft}\HorRule}
224
225 \date{\today}
226
227 % hyperref needs to be the last package you load.
228 \usepackage[pdftex,breaklinks,colorlinks,linkcolor=darkblue,citecolor=blue,urlcolor=blue]{hyperref}
229
230
231 %%% Begin document
232 \begin{document}
233 \maketitle
234
235 \thispagestyle{fancy}                   % Enabling the custom headers/footers for the first page 
236 % The first character should be within \initial{}
237 %\initial{H}\textbf{ere is some sample text to show the initial in the introductory paragraph of this template article. The color and lineheight of the initial can be modified in the preamble of this document.}
238
239 \input{neboltai}
240 \input{acknowledgements}
241 \input{abstract}
242 \tableofcontents
243 \chapter{Introduction}
244 \label{chapter:Intro}
245 \input{whoshouldread}
246 \input{related_publications}
247 \input{howtoread}
248 \input{disclaimer}
249 \input{motivation}
250 \input{methods}
251 %%
252 \chapter{Practical recommendations}
253 \label{chapter:PracticalSettings}
254 \input{practical_settings}
255 %%
256 \chapter{Theory}
257 %\epigraph{``Number theorists are like lotus-eaters - having tasted this food they can never give it up.''}{-- Leopold Kronecker}
258 \label{chapter:Theory}
259 \input{theory}
260 \chapter{Appendix}
261 \input{tools}
262 \input{links}
263 \input{suggested_reading}
264 \input{cipher_suite_names}
265 \input{further_research}
266 %\input{reviewers}
267 \input{bib}
268
269 \end{document}