change style to report KOMA-scripts
[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
39 %% Epigraph patching
40 \usepackage{epigraph}
41 % \epigraphsize{\small}% Default
42 \setlength\epigraphwidth{8cm}
43 \setlength\epigraphrule{0pt}
44 \usepackage{etoolbox}
45 \makeatletter
46 \patchcmd{\epigraph}{\@epitext{#1}}{\itshape\@epitext{#1}}{}{}
47 \makeatother
48
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
85 \bibliographystyle{alphalink}
86
87 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
88 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
89 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
90 \definecolor{lightlightgray}{gray}{0.9}
91
92 \lstset{
93 %language=Bash,                             % Code langugage
94 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
95 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
96 commentstyle=\color{gray},              % Comments font
97 %numbers=left,                           % Line nums position
98 %numberstyle=\tiny,                      % Line-numbers fonts
99 %stepnumber=1,                           % Step between two line-numbers
100 %numbersep=5pt,                          % How far are line-numbers from code
101 backgroundcolor=\color{lightlightgray}, % Choose background color
102 frame=none,                             % A frame around the code
103 tabsize=2,                              % Default tab size
104 captionpos=b,                           % Caption-position = bottom
105 breaklines=true,                        % Automatic line breaking?
106 breakatwhitespace=false,                % Automatic breaks only at whitespace?
107 showspaces=false,                       % Dont make spaces visible
108 showtabs=false,                         % Dont make tabls visible
109 columns=fixed,                          % Column format
110 morekeywords={__global__, __device__},  % 
111 }
112
113
114 %% \todo{} command.
115 %
116 % Outputs red TODOs in the document. Requires \usepackage{color}.
117 %
118 % Usage: \todo{Document the TODO command.}
119 %
120 % Comment out second line to disable.
121 \newcommand{\todo}[1]{}
122 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
123
124
125 %%% Custom sectioning (sectsty package)
126 \usepackage{sectsty}                                                                                                    % Custom sectioning (see below)
127 \allsectionsfont{%                                                                                                                      % Change font of al section commands
128         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
129         }
130
131 \sectionfont{%                                                                                                                          % Change font of \section command
132         \usefont{OT1}{phv}{b}{n}%                                                                               % bch-b-n: CharterBT-Bold font
133         }
134
135 % use more of the page
136 \usepackage{fullpage}
137
138 %%% Headers and footers
139 \usepackage{fancyhdr}                                                                                           % Needed to define custom headers/footers
140         \pagestyle{fancy}                                                                                                               % Enabling the custom headers/footers
141 \usepackage{lastpage}   
142
143 % Header (empty)
144 \lhead{}
145 \chead{}
146 \rhead{}
147 % Footer (you may change this to your own needs)
148 \lfoot{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
149 \cfoot{}
150 \rfoot{\footnotesize page \thepage\ of \pageref{LastPage}}      % "Page 1 of 2"
151 \renewcommand{\headrulewidth}{0.0pt}
152 \renewcommand{\footrulewidth}{0.4pt}
153
154
155
156 %%% Creating an initial of the very first character of the content
157 \usepackage{lettrine}
158 \newcommand{\initial}[1]{%
159      \lettrine[lines=3,lhang=0.3,nindent=0em]{
160                                 \color{DarkGoldenrod}
161                                 {\textsf{#1}}}{}}
162
163
164
165 %%% Title, author and date metadata
166 \usepackage{titling}                                                                                                                    % For custom titles
167
168 \newcommand{\HorRule}{\color{DarkGoldenrod}%                    % Creating a horizontal rule
169                                                                                 \rule{\linewidth}{1pt}%
170                                                                         }
171
172 \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule 
173                                 \fontsize{36}{36} \usefont{OT1}{phv}{b}{n} \color{DarkRed} \selectfont 
174                                 }
175                         \title{Applied Crypto Hardening}% \\ \vskip 0.5em \large www.bettercrypto.org}
176 \posttitle{\par\end{flushleft}\vskip 0.5em}
177
178 \preauthor{\begin{flushleft}
179                                         \large \lineskip 0.5em \usefont{OT1}{phv}{b}{sl} \color{DarkRed}}
180
181                                         \author{Wolfgang Breyha, David Durvaux, Tobias Dussa, L. Aaron
182                                         Kaplan, Christian Mock, Manuel Koschuch, Adi
183                                         Kriegisch, Ramin Sabet, Berg San, Ralf Schlatterbeck, Aaron Zauner, Pepi Zawodsky}
184 %\institute{
185 %FH Campus Wien
186 %\and
187 %VRVis
188 %\and
189 %CERT.at
190 %\and
191 %Karlsruhe Institute of Technology
192 %}
193
194
195 \setlength{\parindent}{0cm}
196
197 \postauthor{\footnotesize \usefont{OT1}{phv}{m}{sl} \color{Black} 
198 \\ \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)
199                                         \par\end{flushleft}\HorRule}
200
201 \date{\today}
202
203 % hyperref needs to be the last package you load.
204 \usepackage[pdftex,breaklinks,colorlinks,citecolor=blue,urlcolor=blue]{hyperref}
205
206
207 %%% Begin document
208 \begin{document}
209 \maketitle
210
211 \thispagestyle{fancy}                   % Enabling the custom headers/footers for the first page 
212 % The first character should be within \initial{}
213 %\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.}
214
215 \input{abstract}
216 \tableofcontents
217 \chapter{Introduction}
218 \input{howtoread}
219 \input{disclaimer}
220 \input{motivation}
221 \input{methods}
222 %%
223 \chapter{Practical recommendations}
224 \input{practical_settings}
225 %%
226 \chapter{Theory}
227 \input{PKIs}
228 \input{ECC}
229 \input{DH}
230 \input{keylengths}
231 \input{RNGs}
232 \input{cipher_suites}
233 \input{ssllibs}
234 \chapter{Appendix}
235 \input{tools}
236 \input{further_research}
237 \input{links}
238 \input{suggested_reading}
239 \input{acknowledgements}
240 \input{reviewers}
241 \input{bib}
242
243 \end{document}