2a36db7fbba8035e7fb796f6ad1c0d691c369109
[ach-master.git] / src / applied-crypto-hardening.tex
1 %%%
2 %%% Applied Crypto Hardening
3 %%% bettercrypto.org
4 %%%
5 %%%% Based on:
6 %%% LaTeX Template: Two column article
7 %%%
8 %%% Source: http://www.howtotex.com/
9 %%% Feel free to distribute this template, but please keep to referal to http://www.howtotex.com/ here.
10 %%% Date: February 2011
11 %%%%
12
13 %%% Preamble
14 \RequirePackage{fix-cm}
15 \documentclass{scrreprt}
16 \usepackage[utf8]{inputenc}
17 % changes font encoding to T1
18 \usepackage[T1]{fontenc}
19 \usepackage{textcomp}
20 % For searchable pdfs
21 \input glyphtounicode
22 \pdfgentounicode=1
23 \usepackage{fixltx2e}
24 \usepackage{scrhack}
25
26 \KOMAoptions{paper=a4%
27   ,fontsize=10pt%
28   ,DIV=12%
29   ,parskip=true%
30 }
31
32
33 \usepackage[english]{babel}
34 \usepackage[final,babel=true]{microtype}[2011/08/18]
35 \usepackage{graphicx}
36
37
38 \usepackage{epstopdf}
39 \usepackage{subfig}
40
41 \usepackage[usenames,dvipsnames]{color}
42 \usepackage{float}
43 \usepackage{subfig}
44 \usepackage{acronym}
45 \usepackage{fancyvrb}
46 \usepackage{listings}
47 \usepackage{longtable}
48
49 % Epigraph / dictum
50 \renewcommand*{\dictumrule}{}
51 \renewcommand*{\dictumauthorformat}[1]{--- #1}
52 \newcommand*{\epigraph}[3][]{\dictum[#3]{#2}\bigskip}
53 \addtokomafont{dictumtext}{\itshape}
54 \setkomafont{dictumauthor}{\normalfont}
55 \renewcommand{\dictumwidth}{8cm}
56
57 \usepackage{gitinfo}
58
59 % custom changes:
60 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
61 \usepackage{placeins}
62 \usepackage{draftwatermark}
63
64 % human tables
65 \usepackage{booktabs}
66 \renewcommand{\arraystretch}{1.25}
67
68 % side box
69 \usepackage{wrapfig}
70 %\usepackage{tcolorbox}
71 \newenvironment{WrapText}[1][r]
72   {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
73   {\endtcolorbox\endwrapfigure}
74
75 % Add text symbols
76 \usepackage{pifont}
77 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
78 \newcommand{\no}{\textcolor{red}{\ding{55}}}
79
80
81 % Colours
82 \definecolor{green}{RGB}{32,113,10}
83 \definecolor{orange}{RGB}{251,111,16}
84 \definecolor{red}{RGB}{247,56,0}
85 \definecolor{blue}{RGB}{0,28,128}
86 \definecolor{lightgreen}{RGB}{187,218,216}
87 \definecolor{intersectgreen}{RGB}{103,133,155}
88 \definecolor{darkblue}{RGB}{76,87,117}
89
90 \bibliographystyle{alphalink}
91
92 \definecolor{Brown}{cmyk}{0,0.81,1,0.60}
93 \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}
94 \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}
95 \definecolor{lightlightgray}{gray}{0.9}
96
97
98 % make font Open Sans
99 \usepackage[defaultsans]{opensans}
100
101 % makes default font sans-serif
102  \renewcommand{\familydefault}{\sfdefault}
103
104 \setcapindent{1em}
105 \addtokomafont{caption}{\small\itshape}
106 \addtokomafont{captionlabel}{\bfseries}
107
108
109 %
110 % Fonts are loaded, now is the right time for mictorype.
111 \microtypesetup{stretch=9,shrink=15,step=3,tracking=smallcaps,letterspace=75}
112
113
114 \lstset{
115 %language=Bash,                             % Code langugage
116 basicstyle=\ttfamily,                   % Code font, Examples: \footnotesize, \ttfamily
117 keywordstyle=\color{OliveGreen},        % Keywords font ('*' = uppercase)
118 commentstyle=\color{gray},              % Comments font
119 %numbers=left,                           % Line nums position
120 %numberstyle=\tiny,                      % Line-numbers fonts
121 %stepnumber=1,                           % Step between two line-numbers
122 %numbersep=5pt,                          % How far are line-numbers from code
123 backgroundcolor=\color{lightlightgray}, % Choose background color
124 frame=none,                             % A frame around the code
125 tabsize=2,                              % Default tab size
126 captionpos=b,                           % Caption-position = bottom
127 breaklines=true,                        % Automatic line breaking?
128 breakatwhitespace=false,                % Automatic breaks only at whitespace?
129 showspaces=false,                       % Dont make spaces visible
130 showtabs=false,                         % Dont make tabls visible
131 columns=fixed,                          % Column format
132 morekeywords={__global__, __device__},  % 
133 }
134
135
136 %% \todo{} command.
137 % Outputs red TODOs in the document. Requires \usepackage{color}.
138 % Usage: \todo{Document the TODO command.}
139 % Comment out second line to disable.
140 \newcommand{\todo}[1]{}
141 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
142
143 \addtokomafont{disposition}{\color{darkblue}\bfseries}
144 \usepackage[footsepline]{scrpage2}
145 \setkomafont{pagefoot}{\normalfont\sffamily\footnotesize}
146 \usepackage{lastpage}
147
148 \ifoot%
149 [Applied Crypto Hardening \textbullet{} Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName]%
150 {Applied Crypto Hardening \textbullet{} Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
151 \cfoot[]{}
152 \ofoot%
153 [page \thepage\ of \pageref{LastPage}]%
154 {page \thepage\ of \pageref{LastPage}}
155
156 \renewcommand*{\chapterpagestyle}{scrheadings}
157
158
159 % Creating a horizontal rule
160 \newcommand{\HorRule}{\color{darkblue}%
161   \rule{\linewidth}{1pt}%
162 }
163
164 \date{\today}
165
166 %tell TeX where to look for graphics/logos
167 \graphicspath{ {/img/} }
168
169 \usepackage{hyperref}
170 \hypersetup{%
171   breaklinks,%
172   colorlinks,%
173   linkcolor=darkblue,citecolor=blue,urlcolor=blue,%
174   breaklinks=true,
175   unicode,%
176   final
177 }
178 \urlstyle{same}
179
180 % Package to create dummy text
181 \usepackage{blindtext}
182 % debug page layout
183 %\usepackage{showframe}
184
185 %%% Begin document
186 \begin{document}
187
188 %\maketitle
189 \pagestyle{scrheadings}
190 % new title page
191 \input{title.tex}
192
193
194
195 \input{neboltai}
196 \input{acknowledgements}
197 \input{abstract}
198 \tableofcontents
199 \chapter{Introduction}
200 \label{chapter:Intro}
201 \input{whoshouldread}
202 \input{related_publications}
203 \input{howtoread}
204 \input{disclaimer}
205 \input{motivation}
206 \input{methods}
207 %%
208 \chapter{Practical recommendations}
209 \label{chapter:PracticalSettings}
210 \input{practical_settings}
211 %%
212 \chapter{Theory}
213 %\epigraph{``Number theorists are like lotus-eaters - having tasted this food they can never give it up.''}{Leopold Kronecker}
214 \label{chapter:Theory}
215 \input{theory}
216 \chapter{Appendix}
217 \input{tools}
218 \input{links}
219 \input{suggested_reading}
220 \input{cipher_suite_names}
221 \input{further_research}
222 %\input{reviewers}
223 \input{bib}
224
225 \end{document}
226 %%% Local Variables: 
227 %%% mode: latex
228 %%% TeX-master: t
229 %%% End: