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