1 %%% LaTeX Template: Two column article
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
8 \documentclass[ DIV=calc,%
11 %onecolumn]{scrartcl} % KOMA-article class
12 onecolumn]{scrreprt} % KOMA-article class
13 %onecolumn]{report} % KOMA-article class
15 \usepackage{lipsum} % Package to create dummy text
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
30 \usepackage[usenames,dvipsnames]{color}
41 % \epigraphsize{\small}% Default
42 \setlength\epigraphwidth{8cm}
43 \setlength\epigraphrule{0pt}
46 \patchcmd{\epigraph}{\@epitext{#1}}{\itshape\@epitext{#1}}{}{}
55 \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
57 \usepackage{draftwatermark}
61 \renewcommand{\arraystretch}{1.25}
65 \usepackage{tcolorbox}
66 \newenvironment{WrapText}[1][r]
67 {\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
68 {\endtcolorbox\endwrapfigure}
72 \newcommand{\yes}{\textcolor{green}{\ding{51}}}
73 \newcommand{\no}{\textcolor{red}{\ding{55}}}
78 \renewcommand{\arraystretch}{1.25}
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}
85 \bibliographystyle{alphalink}
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}
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__}, %
116 % Outputs red TODOs in the document. Requires \usepackage{color}.
118 % Usage: \todo{Document the TODO command.}
120 % Comment out second line to disable.
121 \newcommand{\todo}[1]{}
122 \renewcommand{\todo}[1]{{\color{Red} TODO: {#1}}}
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
131 \sectionfont{% % Change font of \section command
132 \usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
135 % use more of the page
136 \usepackage{fullpage}
138 %%% Headers and footers
139 \usepackage{fancyhdr} % Needed to define custom headers/footers
140 \pagestyle{fancy} % Enabling the custom headers/footers
141 \usepackage{lastpage}
147 % Footer (you may change this to your own needs)
148 \lfoot{\footnotesize Applied Crypto Hardening \textbullet ~Draft revision\gitVtags: \gitAbbrevHash{} (\gitCommitterIsoDate) \gitCommitterName}
150 \rfoot{\footnotesize page \thepage\ of \pageref{LastPage}} % "Page 1 of 2"
151 \renewcommand{\headrulewidth}{0.0pt}
152 \renewcommand{\footrulewidth}{0.4pt}
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}
165 %%% Title, author and date metadata
166 \usepackage{titling} % For custom titles
168 \newcommand{\HorRule}{\color{DarkGoldenrod}% % Creating a horizontal rule
169 \rule{\linewidth}{1pt}%
172 \pretitle{\vspace{-30pt} \begin{flushleft} \HorRule
173 \fontsize{36}{36} \usefont{OT1}{phv}{b}{n} \color{DarkRed} \selectfont
175 \title{Applied Crypto Hardening}% \\ \vskip 0.5em \large www.bettercrypto.org}
176 \posttitle{\par\end{flushleft}\vskip 0.5em}
178 \preauthor{\begin{flushleft}
179 \large \lineskip 0.5em \usefont{OT1}{phv}{b}{sl} \color{DarkRed}}
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, Thomas Schreck, Aaron Zauner, Pepi Zawodsky}
191 %Karlsruhe Institute of Technology
195 \setlength{\parindent}{0cm}
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, Friedrich-Alexander University Erlangen-Nuremberg, azet.org, maclemon.at)
199 \par\end{flushleft}\HorRule}
203 % hyperref needs to be the last package you load.
204 \usepackage[pdftex,breaklinks,colorlinks,citecolor=blue,urlcolor=blue]{hyperref}
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.}
217 \chapter{Introduction}
223 \chapter{Practical recommendations}
224 \input{practical_settings}
232 \input{cipher_suites}
236 \input{further_research}
238 \input{suggested_reading}
239 \input{acknowledgements}