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