added key exchange in more detail
[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
38 % custom changes:
39 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
40 \usepackage{placeins}
41 \usepackage{hyperref}
42 \usepackage{draftwatermark}
43
44 % human tables
45 \usepackage{booktabs}
46 \renewcommand{\arraystretch}{1.25}
47
48 % side box
49 \usepackage{wrapfig}
50 \usepackage{tcolorbox}
51 \newenvironment{WrapText}[1][r]
52   {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
53   {\endtcolorbox\endwrapfigure}
54
55 % Add text symbols
56 \usepackage{pifont}
57 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
58 \newcommand{\no}{\textcolor{red}{\ding{55}}}
59
60 % human tables
61 \usepackage{booktabs}
62 \renewcommand{\arraystretch}{1.25}
63
64 \definecolor{green}{RGB}{32,113,10}
65 \definecolor{orange}{RGB}{251,111,16}
66 \definecolor{red}{RGB}{247,56,0}
67 \definecolor{blue}{RGB}{0,28,128}
68
69 \bibliographystyle{plain}
70
71
72 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
73 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
74 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
75 \definecolor{lightlightgray}{gray}{0.9}
76
77 \lstset{
78 language=Bash,                             % Code langugage
79 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
80 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
81 commentstyle=\color{gray},              % Comments font
82 %numbers=left,                           % Line nums position
83 %numberstyle=\tiny,                      % Line-numbers fonts
84 %stepnumber=1,                           % Step between two line-numbers
85 %numbersep=5pt,                          % How far are line-numbers from code
86 backgroundcolor=\color{lightlightgray}, % Choose background color
87 frame=none,                             % A frame around the code
88 tabsize=2,                              % Default tab size
89 captionpos=b,                           % Caption-position = bottom
90 breaklines=true,                        % Automatic line breaking?
91 breakatwhitespace=false,                % Automatic breaks only at whitespace?
92 showspaces=false,                       % Dont make spaces visible
93 showtabs=false,                         % Dont make tabls visible
94 columns=fixed,                          % Column format
95 morekeywords={__global__, __device__},  % 
96 }
97
98
99 %% \todo{} command.
100 %
101 % Outputs red TODOs in the document. Requires \usepackage{color}.
102 %
103 % Usage: \todo{Document the TODO command.}
104 %
105 % Comment out second line to disable.
106 \newcommand{\todo}[1]{}
107 \renewcommand{\todo}[1]{{\color{red} TODO: {#1}}}
108
109
110 %%% Custom sectioning (sectsty package)
111 \usepackage{sectsty}                                                                                                    % Custom sectioning (see below)
112 \allsectionsfont{%                                                                                                                      % Change font of al section commands
113         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
114         }
115
116 \sectionfont{%                                                                                                                          % Change font of \section command
117         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
118         }
119
120 % use more of the page
121 \usepackage{fullpage}
122
123 %%% Headers and footers
124 \usepackage{fancyhdr}                                                                                           % Needed to define custom headers/footers
125         \pagestyle{fancy}                                                                                                               % Enabling the custom headers/footers
126 \usepackage{lastpage}   
127
128 % Header (empty)
129 \lhead{}
130 \chead{}
131 \rhead{}
132 % Footer (you may change this to your own needs)
133 \lfoot{\footnotesize Applied Crypto Hardening \textbullet ~Draft}
134 \cfoot{}
135 \rfoot{\footnotesize page \thepage\ of \pageref{LastPage}}      % "Page 1 of 2"
136 \renewcommand{\headrulewidth}{0.0pt}
137 \renewcommand{\footrulewidth}{0.4pt}
138
139
140
141 %%% Creating an initial of the very first character of the content
142 \usepackage{lettrine}
143 \newcommand{\initial}[1]{%
144      \lettrine[lines=3,lhang=0.3,nindent=0em]{
145                                 \color{DarkGoldenrod}
146                                 {\textsf{#1}}}{}}
147
148
149
150 %%% Title, author and date metadata
151 \usepackage{titling}                                                                                                                    % For custom titles
152
153 \newcommand{\HorRule}{\color{DarkGoldenrod}%                    % Creating a horizontal rule
154                                                                                 \rule{\linewidth}{1pt}%
155                                                                         }
156
157 \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule 
158                                 \fontsize{36}{36} \usefont{OT1}{phv}{b}{n} \color{DarkRed} \selectfont 
159                                 }
160                         \title{Applied Crypto Hardening}% \\ \vskip 0.5em \large www.bettercrypto.org}
161 \posttitle{\par\end{flushleft}\vskip 0.5em}
162
163 \preauthor{\begin{flushleft}
164                                         \large \lineskip 0.5em \usefont{OT1}{phv}{b}{sl} \color{DarkRed}}
165
166                                         \author{Wolfgang Breyha, David Durvaux, Tobias Dussa, L. Aaron
167                                         Kaplan, Christian Mock, Manuel Koschuch, Adi
168                                 Kriegisch, Ramin Sabet, Aaron Zauner, Pepi Zawodsky}
169 %\institute{
170 %FH Campus Wien
171 %\and
172 %VRVis
173 %\and
174 %CERT.at
175 %\and
176 %Karlsruhe Institute of Technology
177 %}
178
179
180 \setlength{\parindent}{0cm}
181
182 \postauthor{\footnotesize \usefont{OT1}{phv}{m}{sl} \color{Black} 
183 \\ \vskip 0.5em  (University of Vienna, CERT.be, KIT-CERT, CERT.at, coretec.at, FH Campus Wien, VRVis, A-Trust, azet.org, maclemon.at)
184                                         \par\end{flushleft}\HorRule}
185
186 \date{\today}
187
188
189
190 %%% Begin document
191 \begin{document}
192 \maketitle
193 \thispagestyle{fancy}                   % Enabling the custom headers/footers for the first page 
194 % The first character should be within \initial{}
195 %\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.}
196
197 \input{abstract}
198 \newpage
199 \tableofcontents
200 \newpage
201 \input{disclaimer}
202 \input{motivation}
203 \input{methods}
204 \input{scope}
205 \input{PKIs}
206 \input{ECC}
207 \input{keylengths}
208 \input{RNGs}
209 \input{cipher_suites}
210 \input{practical_settings}
211 \input{tools}
212 \input{further_research}
213 \input{links}
214 \input{suggested_reading}
215 \input{reviewers}
216
217 \bibliography{applied-crypto-hardening}
218
219 \end{document}