add propaganda
[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
13 \usepackage{lipsum}                                                                                                     % Package to create dummy text
14
15
16
17 \usepackage[english]{babel}                                                                             % English language/hyphenation
18 \usepackage[protrusion=true,expansion=true]{microtype}                          % Better typography
19 \usepackage{amsmath,amsfonts,amsthm}                                    % Math packages
20 \usepackage[pdftex]{graphicx}                                           % Enable pdflatex 
21 %\usepackage[svgnames]{xcolor}                                                                  % Enabling colors by their 'svgnames'
22 \usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption}        % Custom captions under/above floats
23 \usepackage{epstopdf}                                                                                           % Converts .eps to .pdf
24 \usepackage{subfig}                                                                                                     % Subfigures
25 \usepackage{booktabs}                                                                                           % Nicer tables
26 \usepackage{fix-cm}                                                                                                     % Custom fontsizes
27
28 \usepackage[usenames,dvipsnames]{color}
29 \usepackage{float}
30 \usepackage{subfig}
31 %\usepackage{tikz}
32 \usepackage{acronym}
33 \usepackage{amsthm}
34 \usepackage{fancyvrb}
35 \usepackage{listings}
36
37 %% Epigraph patching
38 \usepackage{epigraph}
39 % \epigraphsize{\small}% Default
40 \setlength\epigraphwidth{8cm}
41 \setlength\epigraphrule{0pt}
42 \usepackage{etoolbox}
43 \makeatletter
44 \patchcmd{\epigraph}{\@epitext{#1}}{\itshape\@epitext{#1}}{}{}
45 \makeatother
46
47
48
49
50 \usepackage{gitinfo}
51
52 % custom changes:
53 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
54 \usepackage{placeins}
55 \usepackage{draftwatermark}
56
57 % human tables
58 \usepackage{booktabs}
59 \renewcommand{\arraystretch}{1.25}
60
61 % side box
62 \usepackage{wrapfig}
63 \usepackage{tcolorbox}
64 \newenvironment{WrapText}[1][r]
65   {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
66   {\endtcolorbox\endwrapfigure}
67
68 % Add text symbols
69 \usepackage{pifont}
70 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
71 \newcommand{\no}{\textcolor{red}{\ding{55}}}
72
73 % human tables
74 \usepackage{booktabs}
75
76 \renewcommand{\arraystretch}{1.25}
77
78 \definecolor{green}{RGB}{32,113,10}
79 \definecolor{orange}{RGB}{251,111,16}
80 \definecolor{red}{RGB}{247,56,0}
81 \definecolor{blue}{RGB}{0,28,128}
82
83 \bibliographystyle{alphalink}
84
85 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
86 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
87 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
88 \definecolor{lightlightgray}{gray}{0.9}
89
90 \lstset{
91 %language=Bash,                             % Code langugage
92 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
93 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
94 commentstyle=\color{gray},              % Comments font
95 %numbers=left,                           % Line nums position
96 %numberstyle=\tiny,                      % Line-numbers fonts
97 %stepnumber=1,                           % Step between two line-numbers
98 %numbersep=5pt,                          % How far are line-numbers from code
99 backgroundcolor=\color{lightlightgray}, % Choose background color
100 frame=none,                             % A frame around the code
101 tabsize=2,                              % Default tab size
102 captionpos=b,                           % Caption-position = bottom
103 breaklines=true,                        % Automatic line breaking?
104 breakatwhitespace=false,                % Automatic breaks only at whitespace?
105 showspaces=false,                       % Dont make spaces visible
106 showtabs=false,                         % Dont make tabls visible
107 columns=fixed,                          % Column format
108 morekeywords={__global__, __device__},  % 
109 }
110
111
112 %% \todo{} command.
113 %
114 % Outputs red TODOs in the document. Requires \usepackage{color}.
115 %
116 % Usage: \todo{Document the TODO command.}
117 %
118 % Comment out second line to disable.
119 \newcommand{\todo}[1]{}
120 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
121
122
123 %%% Custom sectioning (sectsty package)
124 \usepackage{sectsty}                                                                                                    % Custom sectioning (see below)
125 \allsectionsfont{%                                                                                                                      % Change font of al section commands
126         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
127         }
128
129 \sectionfont{%                                                                                                                          % Change font of \section command
130         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
131         }
132
133 % use more of the page
134 \usepackage{fullpage}
135
136 %%% Headers and footers
137 \usepackage{fancyhdr}                                                                                           % Needed to define custom headers/footers
138         \pagestyle{fancy}                                                                                                               % Enabling the custom headers/footers
139 \usepackage{lastpage}   
140
141 % Header (empty)
142 \lhead{}
143 \chead{}
144 \rhead{}
145 % Footer (you may change this to your own needs)
146 \lfoot{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
147 \cfoot{}
148 \rfoot{\footnotesize page \thepage\ of \pageref{LastPage}}      % "Page 1 of 2"
149 \renewcommand{\headrulewidth}{0.0pt}
150 \renewcommand{\footrulewidth}{0.4pt}
151
152
153
154 %%% Creating an initial of the very first character of the content
155 \usepackage{lettrine}
156 \newcommand{\initial}[1]{%
157      \lettrine[lines=3,lhang=0.3,nindent=0em]{
158                                 \color{DarkGoldenrod}
159                                 {\textsf{#1}}}{}}
160
161
162
163 %%% Title, author and date metadata
164 \usepackage{titling}                                                                                                                    % For custom titles
165
166 \newcommand{\HorRule}{\color{DarkGoldenrod}%                    % Creating a horizontal rule
167                                                                                 \rule{\linewidth}{1pt}%
168                                                                         }
169
170 \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule 
171                                 \fontsize{36}{36} \usefont{OT1}{phv}{b}{n} \color{DarkRed} \selectfont 
172                                 }
173                         \title{Applied Crypto Hardening}% \\ \vskip 0.5em \large www.bettercrypto.org}
174 \posttitle{\par\end{flushleft}\vskip 0.5em}
175
176 \preauthor{\begin{flushleft}
177                                         \large \lineskip 0.5em \usefont{OT1}{phv}{b}{sl} \color{DarkRed}}
178
179                                         \author{Wolfgang Breyha, David Durvaux, Tobias Dussa, L. Aaron
180                                         Kaplan, Christian Mock, Manuel Koschuch, Adi
181                                         Kriegisch, Ramin Sabet, Berg San, Ralf Schlatterbeck, Aaron Zauner, Pepi Zawodsky}
182 %\institute{
183 %FH Campus Wien
184 %\and
185 %VRVis
186 %\and
187 %CERT.at
188 %\and
189 %Karlsruhe Institute of Technology
190 %}
191
192
193 \setlength{\parindent}{0cm}
194
195 \postauthor{\footnotesize \usefont{OT1}{phv}{m}{sl} \color{Black} 
196 \\ \vskip 0.5em  (University of Vienna, CERT.be, KIT-CERT, CERT.at, coretec.at, FH Campus Wien, VRVis, A-Trust, Runtux.com, azet.org, maclemon.at)
197                                         \par\end{flushleft}\HorRule}
198
199 \date{\today}
200
201 % hyperref needs to be the last package you load.
202 \usepackage[pdftex,breaklinks,colorlinks,citecolor=blue,urlcolor=blue]{hyperref}
203
204
205 %%% Begin document
206 \begin{document}
207 \maketitle
208
209 \thispagestyle{fancy}                   % Enabling the custom headers/footers for the first page 
210 % The first character should be within \initial{}
211 %\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.}
212
213 \input{abstract}
214 \newpage
215 \tableofcontents
216 \newpage
217 \input{howtoread}
218 \input{disclaimer}
219 \input{motivation}
220 \input{methods}
221 \input{PKIs}
222 \input{ECC}
223 \input{DH}
224 \input{keylengths}
225 \input{RNGs}
226 \input{cipher_suites}
227 \input{ssllibs}
228 \input{practical_settings}
229 \input{tools}
230 \input{further_research}
231 \input{links}
232 \input{suggested_reading}
233 \input{acknowledgements}
234 \input{reviewers}
235 \input{bib}
236
237 \end{document}