reformat ECC section
[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{fix-cm}                                                                                                     % Custom fontsizes
28
29 \usepackage[usenames,dvipsnames]{color}
30 \usepackage{float}
31 \usepackage{subfig}
32 %\usepackage{tikz}
33 \usepackage{acronym}
34 \usepackage{amsthm}
35 \usepackage{fancyvrb}
36 \usepackage{listings}
37 \usepackage{longtable}
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 \usepackage{gitinfo}
52
53 % custom changes:
54 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
55 \usepackage{placeins}
56 \usepackage{draftwatermark}
57
58 % human tables
59 \usepackage{booktabs}
60 \renewcommand{\arraystretch}{1.25}
61
62 % side box
63 \usepackage{wrapfig}
64 %\usepackage{tcolorbox}
65 \newenvironment{WrapText}[1][r]
66   {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
67   {\endtcolorbox\endwrapfigure}
68
69 % Add text symbols
70 \usepackage{pifont}
71 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
72 \newcommand{\no}{\textcolor{red}{\ding{55}}}
73
74
75 % Colours
76 \definecolor{green}{RGB}{32,113,10}
77 \definecolor{orange}{RGB}{251,111,16}
78 \definecolor{red}{RGB}{247,56,0}
79 \definecolor{blue}{RGB}{0,28,128}
80 \definecolor{lightgreen}{RGB}{187,218,216}
81 \definecolor{intersectgreen}{RGB}{103,133,155}
82 \definecolor{darkblue}{RGB}{76,87,117}
83
84 \bibliographystyle{alphalink}
85
86 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
87 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
88 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
89 \definecolor{lightlightgray}{gray}{0.9}
90
91 \usepackage{titlesec}
92 %\allsectionsfont{\color{darkblue}\itshape\underline}
93 %\sectionfont{\color{darkblue}\itshape\selectfont}
94 %\subsectionfont{\color{darkblue}\itshape\selectfont}
95 \renewcommand*\sectfont{\sffamily\color{darkblue}\mdseries}
96 %\renewcommand*\sectfont{\rmfamily\mdseries\itshape}
97
98
99 % makes default font sans-serif
100  \renewcommand{\familydefault}{\sfdefault}
101
102 % make font Open Sans
103 % \usepackage{opensans}
104 \usepackage[defaultsans]{opensans}
105
106 % changes font encoding to T1
107 % \usepackage[T1]{fontenc}
108 % \usepackage{textcomp}
109
110 \lstset{
111 %language=Bash,                             % Code langugage
112 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
113 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
114 commentstyle=\color{gray},              % Comments font
115 %numbers=left,                           % Line nums position
116 %numberstyle=\tiny,                      % Line-numbers fonts
117 %stepnumber=1,                           % Step between two line-numbers
118 %numbersep=5pt,                          % How far are line-numbers from code
119 backgroundcolor=\color{lightlightgray}, % Choose background color
120 frame=none,                             % A frame around the code
121 tabsize=2,                              % Default tab size
122 captionpos=b,                           % Caption-position = bottom
123 breaklines=true,                        % Automatic line breaking?
124 breakatwhitespace=false,                % Automatic breaks only at whitespace?
125 showspaces=false,                       % Dont make spaces visible
126 showtabs=false,                         % Dont make tabls visible
127 columns=fixed,                          % Column format
128 morekeywords={__global__, __device__},  % 
129 }
130
131
132 %% \todo{} command.
133 %
134 % Outputs red TODOs in the document. Requires \usepackage{color}.
135 %
136 % Usage: \todo{Document the TODO command.}
137 %
138 % Comment out second line to disable.
139 \newcommand{\todo}[1]{}
140 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
141
142
143 %%% Custom sectioning (sectsty package)
144 \usepackage{sectsty}                                                                                                    % Custom sectioning (see below)
145 \allsectionsfont{%                                                                                                                      % Change font of al section commands
146         %\usefont{OT1}{phv}{b}{n}%                                                                              % bch-b-n: CharterBT-Bold font 
147 \bfseries                                                                                                                       % should make it Open Sans Bold
148         }
149
150 \sectionfont{%                                                                                                                          % Change font of \section command
151         %\usefont{OT1}{phv}{b}{n}%                                                                              % bch-b-n: CharterBT-Bold font
152 \bfseries       
153         }
154
155 % use more of the page
156 \usepackage{fullpage}
157
158 %%% Headers and footers
159 \usepackage{fancyhdr}                                                                                           % Needed to define custom headers/footers
160         \pagestyle{fancy}                                                                                                               % Enabling the custom headers/footers
161 \usepackage{lastpage}   
162
163 % Header (empty)
164 \lhead{}
165 \chead{}
166 \rhead{}
167 % Footer (you may change this to your own needs)
168 \lfoot{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
169 \cfoot{}
170 \rfoot{\footnotesize page \thepage\ of \pageref{LastPage}}      % "Page 1 of 2"
171 \renewcommand{\headrulewidth}{0.0pt}
172 \renewcommand{\footrulewidth}{0.4pt}
173
174
175
176 %%% Creating an initial of the very first character of the content
177 \usepackage{lettrine}
178 \newcommand{\initial}[1]{%
179      \lettrine[lines=3,lhang=0.3,nindent=0em]{
180                                 \color{darkblue}
181                                 {\textsf{#1}}}{}}
182
183
184
185 %%% Title, author and date metadata
186 \usepackage{titling}                                                                                                                    % For custom titles
187
188 \newcommand{\HorRule}{\color{darkblue}%                 % Creating a horizontal rule
189                                                                                 \rule{\linewidth}{1pt}%
190                                                                         }
191
192
193 \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule 
194                                 \fontsize{35}{36} \bfseries \color{darkblue} \selectfont 
195                                 }
196                         \title{Applied Crypto Hardening}% \\ \vskip 0.5em \large www.bettercrypto.org}
197 \posttitle{\par\end{flushleft}\vskip 0.5em}
198
199 \preauthor{\begin{flushleft}
200                                         \large \lineskip 0.5em  
201                                         \color{intersectgreen}}
202                                         %\vskip 0.5em
203                                         \author{Wolfgang Breyha, David Durvaux, Tobias Dussa, L. Aaron
204                                         Kaplan, Florian Mendel, Christian Mock, Manuel Koschuch, Adi
205                                         Kriegisch, Ulrich P\"oschl, Ramin Sabet, Berg San, Ralf Schlatterbeck, 
206                                         Thomas Schreck, Aaron Zauner, Pepi Zawodsky}
207 %\institute{
208 %FH Campus Wien
209 %\and
210 %VRVis
211 %\and
212 %CERT.at
213 %\and
214 %Karlsruhe Institute of Technology
215 %}
216
217
218 \setlength{\parindent}{0cm}
219
220 \postauthor{\footnotesize  \color{Black}  \vskip 2.5em
221   (University of Vienna, CERT.be, KIT-CERT, CERT.at, IAIK, coretec.at, FH Campus Wien, VRVis, MilCERT Austria, A-Trust, Runtux.com, Friedrich-Alexander University Erlangen-Nuremberg, azet.org, maclemon.at)
222                                         \par\end{flushleft}\HorRule}
223
224 \date{\today}
225
226 %tell TeX where to look for graphics/logos
227 \graphicspath{ {/img/} }
228
229 % hyperref needs to be the last package you load.
230 \usepackage[pdftex,breaklinks,colorlinks,linkcolor=darkblue,citecolor=blue,urlcolor=blue]{hyperref}
231
232
233 %%% Begin document
234 \begin{document}
235 \maketitle
236
237 \thispagestyle{fancy}                   % Enabling the custom headers/footers for the first page 
238 % The first character should be within \initial{}
239 %\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.}
240
241 % add logo graphic
242 %\includegraphics{img/logo}
243
244 \input{neboltai}
245 \input{acknowledgements}
246 \input{abstract}
247 \tableofcontents
248 \chapter{Introduction}
249 \label{chapter:Intro}
250 \input{whoshouldread}
251 \input{related_publications}
252 \input{howtoread}
253 \input{disclaimer}
254 \input{motivation}
255 \input{methods}
256 %%
257 \chapter{Practical recommendations}
258 \label{chapter:PracticalSettings}
259 \input{practical_settings}
260 %%
261 \chapter{Theory}
262 %\epigraph{``Number theorists are like lotus-eaters - having tasted this food they can never give it up.''}{-- Leopold Kronecker}
263 \label{chapter:Theory}
264 \input{theory}
265 \chapter{Appendix}
266 \input{tools}
267 \input{links}
268 \input{suggested_reading}
269 \input{cipher_suite_names}
270 \input{further_research}
271 %\input{reviewers}
272 \input{bib}
273
274 \end{document}