Added Font Open Sans. Added custom colours.
[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 \usepackage{gitinfo}
39
40 % custom changes:
41 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
42 \usepackage{placeins}
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
64 \renewcommand{\arraystretch}{1.25}
65
66 \definecolor{green}{RGB}{32,113,10}
67 \definecolor{orange}{RGB}{251,111,16}
68 \definecolor{red}{RGB}{247,56,0}
69 \definecolor{blue}{RGB}{0,28,128}
70 \definecolor{lightgreen}{RGB}{187,218,216}
71 \definecolor{intersectgreen}{RGB}{103,133,155}
72 \definecolor{darkblue}{RGB}{76,87,117}
73
74 \bibliographystyle{alphalink}
75
76 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
77 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
78 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
79 \definecolor{lightlightgray}{gray}{0.9}
80
81 % makes default font sans-serif
82  \renewcommand{\familydefault}{\sfdefault}
83
84 % make font Open Sans
85 % \usepackage{opensans}
86 \usepackage[defaultsans]{opensans}
87
88 % changes font encoding to T1
89 % \usepackage[T1]{fontenc}
90 % \usepackage{textcomp}
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{darkblue}
161                                 {\textsf{#1}}}{}}
162
163
164
165 %%% Title, author and date metadata
166 \usepackage{titling}                                                                                                                    % For custom titles
167
168 \newcommand{\HorRule}{\color{darkblue}%                 % Creating a horizontal rule
169                                                                                 \rule{\linewidth}{1pt}%
170                                                                         }
171 % \usefont{OT1}{phv}{b}{n}
172 % \usefont{OT1}{phv}{b}{sl}
173
174 \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule 
175                                 \fontsize{36}{36}  \color{darkblue} \selectfont 
176                                 }
177                         \title{Applied Crypto Hardening}% \\ \vskip 0.5em \large www.bettercrypto.org}
178 \posttitle{\par\end{flushleft}\vskip 0.5em}
179
180 \preauthor{\begin{flushleft}
181                                         \large \lineskip 0.5em  \color{intersectgreen}}
182
183                                         \author{Wolfgang Breyha, David Durvaux, Tobias Dussa, L. Aaron
184                                         Kaplan, Christian Mock, Manuel Koschuch, Adi
185                                         Kriegisch, Ramin Sabet, Berg San, Ralf Schlatterbeck, Aaron Zauner, Pepi Zawodsky}
186 %\institute{
187 %FH Campus Wien
188 %\and
189 %VRVis
190 %\and
191 %CERT.at
192 %\and
193 %Karlsruhe Institute of Technology
194 %}
195
196
197 \setlength{\parindent}{0cm}
198
199 \postauthor{\footnotesize \usefont{OT1}{phv}{m}{sl} \color{Black} 
200 \\ \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)
201                                         \par\end{flushleft}\HorRule}
202
203 \date{\today}
204
205 % hyperref needs to be the last package you load.
206 \usepackage[pdftex,breaklinks,colorlinks,citecolor=blue,urlcolor=blue]{hyperref}
207
208 %%% Begin document
209 \begin{document}
210 \maketitle
211
212 \thispagestyle{fancy}                   % Enabling the custom headers/footers for the first page 
213 % The first character should be within \initial{}
214 %\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.}
215
216 \input{abstract}
217 \newpage
218 \tableofcontents
219 \newpage
220 \input{howtoread}
221 \input{disclaimer}
222 \input{motivation}
223 \input{methods}
224 \input{scope}
225 \input{PKIs}
226 \input{ECC}
227 \input{DH}
228 \input{keylengths}
229 \input{RNGs}
230 \input{cipher_suites}
231 \input{ssllibs}
232 \input{practical_settings}
233 \input{tools}
234 \input{further_research}
235 \input{links}
236 \input{suggested_reading}
237 \input{acknowledgements}
238 \input{reviewers}
239 \input{bib}
240
241 \end{document}