first commit
This commit is contained in:
276
.gitignore
vendored
Normal file
276
.gitignore
vendored
Normal file
@@ -0,0 +1,276 @@
|
|||||||
|
ESCoS-RSU*
|
||||||
|
|
||||||
|
## Core latex/pdflatex auxiliary files:
|
||||||
|
*.aux
|
||||||
|
*.lof
|
||||||
|
*.log
|
||||||
|
*.lot
|
||||||
|
*.fls
|
||||||
|
*.out
|
||||||
|
*.toc
|
||||||
|
*.fmt
|
||||||
|
*.fot
|
||||||
|
*.cb
|
||||||
|
*.cb2
|
||||||
|
.*.lb
|
||||||
|
|
||||||
|
## Intermediate documents:
|
||||||
|
*.dvi
|
||||||
|
*.xdv
|
||||||
|
*-converted-to.*
|
||||||
|
# these rules might exclude image files for figures etc.
|
||||||
|
# *.ps
|
||||||
|
# *.eps
|
||||||
|
# *.pdf
|
||||||
|
|
||||||
|
## Generated if empty string is given at "Please type another file name for output:"
|
||||||
|
#.pdf
|
||||||
|
|
||||||
|
## Bibliography auxiliary files (bibtex/biblatex/biber):
|
||||||
|
*.bbl
|
||||||
|
*.bcf
|
||||||
|
*.blg
|
||||||
|
*-blx.aux
|
||||||
|
*-blx.bib
|
||||||
|
*.run.xml
|
||||||
|
|
||||||
|
## Build tool auxiliary files:
|
||||||
|
*.fdb_latexmk
|
||||||
|
*.synctex
|
||||||
|
*.synctex(busy)
|
||||||
|
*.synctex.gz
|
||||||
|
*.synctex.gz(busy)
|
||||||
|
*.pdfsync
|
||||||
|
|
||||||
|
## Build tool directories for auxiliary files
|
||||||
|
# latexrun
|
||||||
|
latex.out/
|
||||||
|
|
||||||
|
## Auxiliary and intermediate files from other packages:
|
||||||
|
# algorithms
|
||||||
|
*.alg
|
||||||
|
*.loa
|
||||||
|
|
||||||
|
# achemso
|
||||||
|
acs-*.bib
|
||||||
|
|
||||||
|
# amsthm
|
||||||
|
*.thm
|
||||||
|
|
||||||
|
# beamer
|
||||||
|
*.nav
|
||||||
|
*.pre
|
||||||
|
*.snm
|
||||||
|
*.vrb
|
||||||
|
|
||||||
|
# changes
|
||||||
|
*.soc
|
||||||
|
|
||||||
|
# comment
|
||||||
|
*.cut
|
||||||
|
|
||||||
|
# cprotect
|
||||||
|
*.cpt
|
||||||
|
|
||||||
|
# elsarticle (documentclass of Elsevier journals)
|
||||||
|
*.spl
|
||||||
|
|
||||||
|
# endnotes
|
||||||
|
*.ent
|
||||||
|
|
||||||
|
# fixme
|
||||||
|
*.lox
|
||||||
|
|
||||||
|
# feynmf/feynmp
|
||||||
|
*.mf
|
||||||
|
*.mp
|
||||||
|
*.t[1-9]
|
||||||
|
*.t[1-9][0-9]
|
||||||
|
*.tfm
|
||||||
|
|
||||||
|
#(r)(e)ledmac/(r)(e)ledpar
|
||||||
|
*.end
|
||||||
|
*.?end
|
||||||
|
*.[1-9]
|
||||||
|
*.[1-9][0-9]
|
||||||
|
*.[1-9][0-9][0-9]
|
||||||
|
*.[1-9]R
|
||||||
|
*.[1-9][0-9]R
|
||||||
|
*.[1-9][0-9][0-9]R
|
||||||
|
*.eledsec[1-9]
|
||||||
|
*.eledsec[1-9]R
|
||||||
|
*.eledsec[1-9][0-9]
|
||||||
|
*.eledsec[1-9][0-9]R
|
||||||
|
*.eledsec[1-9][0-9][0-9]
|
||||||
|
*.eledsec[1-9][0-9][0-9]R
|
||||||
|
|
||||||
|
# glossaries
|
||||||
|
*.acn
|
||||||
|
*.acr
|
||||||
|
*.glg
|
||||||
|
*.glo
|
||||||
|
*.gls
|
||||||
|
*.glsdefs
|
||||||
|
*.lzo
|
||||||
|
*.lzs
|
||||||
|
|
||||||
|
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
|
||||||
|
*.ist
|
||||||
|
|
||||||
|
# gnuplottex
|
||||||
|
*-gnuplottex-*
|
||||||
|
|
||||||
|
# gregoriotex
|
||||||
|
*.gaux
|
||||||
|
*.gtex
|
||||||
|
|
||||||
|
# htlatex
|
||||||
|
*.4ct
|
||||||
|
*.4tc
|
||||||
|
*.idv
|
||||||
|
*.lg
|
||||||
|
*.trc
|
||||||
|
*.xref
|
||||||
|
|
||||||
|
# hyperref
|
||||||
|
*.brf
|
||||||
|
|
||||||
|
# knitr
|
||||||
|
*-concordance.tex
|
||||||
|
# TODO Comment the next line if you want to keep your tikz graphics files
|
||||||
|
*.tikz
|
||||||
|
*-tikzDictionary
|
||||||
|
|
||||||
|
# listings
|
||||||
|
*.lol
|
||||||
|
|
||||||
|
# luatexja-ruby
|
||||||
|
*.ltjruby
|
||||||
|
|
||||||
|
# makeidx
|
||||||
|
*.idx
|
||||||
|
*.ilg
|
||||||
|
*.ind
|
||||||
|
|
||||||
|
# minitoc
|
||||||
|
*.maf
|
||||||
|
*.mlf
|
||||||
|
*.mlt
|
||||||
|
*.mtc[0-9]*
|
||||||
|
*.slf[0-9]*
|
||||||
|
*.slt[0-9]*
|
||||||
|
*.stc[0-9]*
|
||||||
|
|
||||||
|
# minted
|
||||||
|
_minted*
|
||||||
|
*.pyg
|
||||||
|
|
||||||
|
# morewrites
|
||||||
|
*.mw
|
||||||
|
|
||||||
|
# nomencl
|
||||||
|
*.nlg
|
||||||
|
*.nlo
|
||||||
|
*.nls
|
||||||
|
|
||||||
|
# pax
|
||||||
|
*.pax
|
||||||
|
|
||||||
|
# pdfpcnotes
|
||||||
|
*.pdfpc
|
||||||
|
|
||||||
|
# sagetex
|
||||||
|
*.sagetex.sage
|
||||||
|
*.sagetex.py
|
||||||
|
*.sagetex.scmd
|
||||||
|
|
||||||
|
# scrwfile
|
||||||
|
*.wrt
|
||||||
|
|
||||||
|
# sympy
|
||||||
|
*.sout
|
||||||
|
*.sympy
|
||||||
|
sympy-plots-for-*.tex/
|
||||||
|
|
||||||
|
# pdfcomment
|
||||||
|
*.upa
|
||||||
|
*.upb
|
||||||
|
|
||||||
|
# pythontex
|
||||||
|
*.pytxcode
|
||||||
|
pythontex-files-*/
|
||||||
|
|
||||||
|
# tcolorbox
|
||||||
|
*.listing
|
||||||
|
|
||||||
|
# thmtools
|
||||||
|
*.loe
|
||||||
|
|
||||||
|
# TikZ & PGF
|
||||||
|
*.dpth
|
||||||
|
*.md5
|
||||||
|
*.auxlock
|
||||||
|
|
||||||
|
# todonotes
|
||||||
|
*.tdo
|
||||||
|
|
||||||
|
# vhistory
|
||||||
|
*.hst
|
||||||
|
*.ver
|
||||||
|
|
||||||
|
# easy-todo
|
||||||
|
*.lod
|
||||||
|
|
||||||
|
# xcolor
|
||||||
|
*.xcp
|
||||||
|
|
||||||
|
# xmpincl
|
||||||
|
*.xmpi
|
||||||
|
|
||||||
|
# xindy
|
||||||
|
*.xdy
|
||||||
|
|
||||||
|
# xypic precompiled matrices and outlines
|
||||||
|
*.xyc
|
||||||
|
*.xyd
|
||||||
|
|
||||||
|
# endfloat
|
||||||
|
*.ttt
|
||||||
|
*.fff
|
||||||
|
|
||||||
|
# Latexian
|
||||||
|
TSWLatexianTemp*
|
||||||
|
|
||||||
|
## Editors:
|
||||||
|
# WinEdt
|
||||||
|
*.bak
|
||||||
|
*.sav
|
||||||
|
|
||||||
|
# Texpad
|
||||||
|
.texpadtmp
|
||||||
|
|
||||||
|
# LyX
|
||||||
|
*.lyx~
|
||||||
|
|
||||||
|
# Kile
|
||||||
|
*.backup
|
||||||
|
|
||||||
|
# gummi
|
||||||
|
.*.swp
|
||||||
|
|
||||||
|
# KBibTeX
|
||||||
|
*~[0-9]*
|
||||||
|
|
||||||
|
# auto folder when using emacs and auctex
|
||||||
|
./auto/*
|
||||||
|
*.el
|
||||||
|
|
||||||
|
# expex forward references with \gathertags
|
||||||
|
*-tags.tex
|
||||||
|
|
||||||
|
# standalone packages
|
||||||
|
*.sta
|
||||||
|
|
||||||
|
# Makeindex log files
|
||||||
|
*.lpz
|
||||||
|
|
||||||
7
Makefile
Normal file
7
Makefile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
TEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error
|
||||||
|
BIB = biber
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
$(TEX) main.tex
|
||||||
|
all:
|
||||||
|
$(TEX) main.tex
|
||||||
6
chapters/code.tex
Normal file
6
chapters/code.tex
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
% Encoding: UTF-8
|
||||||
|
|
||||||
|
%\lstinputlisting[language=Python, caption=Python code]{/home/loic/Documents/projects/heia-fr/secit/labo01-RSA/all.py}
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
11
commands/commands.tex
Normal file
11
commands/commands.tex
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
%-----------------
|
||||||
|
% Your infos
|
||||||
|
%----------------
|
||||||
|
\newcommand{\courseName}{Sécurité IT 2}
|
||||||
|
\newcommand{\filiere}{Filière Télécommunication, Internet et Communication}
|
||||||
|
\newcommand{\projectname}{Labo 01 - RSA}
|
||||||
|
\newcommand{\schoolyear}{2019-2020}
|
||||||
|
\newcommand{\professorName}{Jean-Roland Schuler}
|
||||||
|
\newcommand{\studentNameA}{Loïc Guibert}
|
||||||
|
\newcommand{\studentNameB}{Raphaël Pittet}
|
||||||
|
\newcommand{\studentNameC}{Célestin Rumo}
|
||||||
81
coverpage/coverpage.tex
Normal file
81
coverpage/coverpage.tex
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
%%FROM
|
||||||
|
% WikiBooks (LaTeX - Title Creation) with modifications by:
|
||||||
|
% Vel (vel@latextemplates.com)
|
||||||
|
|
||||||
|
|
||||||
|
% Defines a new command for horizontal lines, change thickness here
|
||||||
|
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
|
||||||
|
|
||||||
|
% Suppresses displaying the page number on the title page and the subsequent page counts as page 1
|
||||||
|
\begin{titlepage}
|
||||||
|
% Centre everything on the page
|
||||||
|
\begin{center}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
% Headings
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
% Main heading such as the name of your university/college
|
||||||
|
\includegraphics[width=1\textwidth]{heia.png}\\[1cm]
|
||||||
|
|
||||||
|
\large \filiere\\[0.4cm]
|
||||||
|
|
||||||
|
\large \schoolyear\\
|
||||||
|
\vspace{2cm}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
% Title
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\HRule\\[0.4cm]
|
||||||
|
|
||||||
|
{\huge\bfseries \projectname}\\
|
||||||
|
|
||||||
|
\vspace{0.1cm}
|
||||||
|
|
||||||
|
\large \courseName \\
|
||||||
|
|
||||||
|
\HRule\\[1.5cm]
|
||||||
|
\vspace{2cm}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
% Author(s)
|
||||||
|
%------------------------------------------------
|
||||||
|
|
||||||
|
\begin{minipage}{1\textwidth}
|
||||||
|
|
||||||
|
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l r }
|
||||||
|
|
||||||
|
\textit{\textbf{Auteurs}} \medskip & \textit{\textbf{Professeur}} \\
|
||||||
|
|
||||||
|
\studentNameA & \professorName \\
|
||||||
|
\studentNameB & \\
|
||||||
|
\studentNameC & \\
|
||||||
|
|
||||||
|
\end{tabular*}
|
||||||
|
\end{minipage}
|
||||||
|
|
||||||
|
%------------------------------------------------
|
||||||
|
% Date
|
||||||
|
%------------------------------------------------
|
||||||
|
\vfill\vfill\vfill % Position the date 3/4 down the remaining page
|
||||||
|
|
||||||
|
\end{center}
|
||||||
|
|
||||||
|
%\today Date, change the \today to a set date if you want to be precise
|
||||||
|
|
||||||
|
\begin{minipage}{1\textwidth}
|
||||||
|
|
||||||
|
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l r }
|
||||||
|
|
||||||
|
\textit{\textbf{\large{Fribourg, Le {\today}}}} \\
|
||||||
|
|
||||||
|
\end{tabular*}
|
||||||
|
\end{minipage}
|
||||||
|
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
\vfill % Push the date up 1/4 of the remaining page
|
||||||
|
|
||||||
|
\end{titlepage}
|
||||||
1
crypted_nopadding.txt
Normal file
1
crypted_nopadding.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Øèó?<3F>Z“æRn¹z.=þ¹o•}@ï²\:«„sªìØwºóS×é.¦û§ôÖ
|
||||||
0
crypted_padding.txt
Normal file
0
crypted_padding.txt
Normal file
BIN
logo/heia.png
Normal file
BIN
logo/heia.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
31
main.ist
Normal file
31
main.ist
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
% makeindex style file created by the glossaries package
|
||||||
|
% for document 'main' on 2020-1-30
|
||||||
|
actual '?'
|
||||||
|
encap '|'
|
||||||
|
level '!'
|
||||||
|
quote '"'
|
||||||
|
keyword "\\glossaryentry"
|
||||||
|
preamble "\\glossarysection[\\glossarytoctitle]{\\glossarytitle}\\glossarypreamble\n\\begin{theglossary}\\glossaryheader\n"
|
||||||
|
postamble "\%\n\\end{theglossary}\\glossarypostamble\n"
|
||||||
|
group_skip "\\glsgroupskip\n"
|
||||||
|
item_0 "\%\n"
|
||||||
|
item_1 "\%\n"
|
||||||
|
item_2 "\%\n"
|
||||||
|
item_01 "\%\n"
|
||||||
|
item_x1 "\\relax \\glsresetentrylist\n"
|
||||||
|
item_12 "\%\n"
|
||||||
|
item_x2 "\\relax \\glsresetentrylist\n"
|
||||||
|
delim_0 "\{\\glossaryentrynumbers\{\\relax "
|
||||||
|
delim_1 "\{\\glossaryentrynumbers\{\\relax "
|
||||||
|
delim_2 "\{\\glossaryentrynumbers\{\\relax "
|
||||||
|
delim_t "\}\}"
|
||||||
|
delim_n "\\delimN "
|
||||||
|
delim_r "\\delimR "
|
||||||
|
headings_flag 1
|
||||||
|
heading_prefix "\\glsgroupheading\{"
|
||||||
|
heading_suffix "\}\\relax \\glsresetentrylist "
|
||||||
|
symhead_positive "glssymbols"
|
||||||
|
numhead_positive "glsnumbers"
|
||||||
|
page_compositor "."
|
||||||
|
suffix_2p ""
|
||||||
|
suffix_3p ""
|
||||||
119
main.tex
Normal file
119
main.tex
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
% !TeX root = ./main.tex
|
||||||
|
\documentclass[12pt,a4paper]{article}
|
||||||
|
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage[english,french]{babel}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
\usepackage{color}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{hyperref}
|
||||||
|
\usepackage[top=3cm,bottom=3cm,right=3cm,left=3cm]{geometry}
|
||||||
|
\usepackage{csquotes}
|
||||||
|
\usepackage{caption}
|
||||||
|
\usepackage{subcaption}
|
||||||
|
|
||||||
|
|
||||||
|
% https://en.wikibooks.org/wiki/LaTeX/Hyperlinks
|
||||||
|
\usepackage{xcolor}% http://ctan.org/pkg/xcolor
|
||||||
|
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
|
||||||
|
\hypersetup{
|
||||||
|
colorlinks=true,
|
||||||
|
linkcolor=blue!50!blue,
|
||||||
|
urlcolor=blue!70!blue,
|
||||||
|
citecolor=blue!70!blue
|
||||||
|
% colorlinks=false,% hyperlinks will be black
|
||||||
|
% linkbordercolor=blue,% hyperlink borders will be red
|
||||||
|
% pdfborderstyle={/S/U/W 1}% border style will be underline of width 1pt
|
||||||
|
}
|
||||||
|
|
||||||
|
\usepackage{tabularx}
|
||||||
|
\usepackage{titlesec}
|
||||||
|
\usepackage{parskip}
|
||||||
|
|
||||||
|
\definecolor{lightgray}{rgb}{.9,.9,.9}
|
||||||
|
\definecolor{darkgray}{rgb}{.4,.4,.4}
|
||||||
|
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
|
||||||
|
|
||||||
|
%Listing
|
||||||
|
|
||||||
|
\usepackage{listings}
|
||||||
|
\lstset{
|
||||||
|
basicstyle=\ttfamily,
|
||||||
|
language=Python,
|
||||||
|
belowcaptionskip=1\baselineskip,
|
||||||
|
basicstyle=\footnotesize\ttfamily,
|
||||||
|
stringstyle=\color{orange},
|
||||||
|
numbers=left,
|
||||||
|
numberstyle=\tiny,
|
||||||
|
xleftmargin=\parindent,
|
||||||
|
commentstyle=\color{blue},
|
||||||
|
keywordstyle=\color{green},
|
||||||
|
inputencoding=utf8,
|
||||||
|
extendedchars=true,
|
||||||
|
breaklines=true,
|
||||||
|
columns=fullflexible,
|
||||||
|
showstringspaces=false,
|
||||||
|
postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
|
||||||
|
literate=%
|
||||||
|
{é}{{\'{e}}}1
|
||||||
|
{è}{{\`{e}}}1
|
||||||
|
{ê}{{\^{e}}}1
|
||||||
|
{ë}{{\¨{e}}}1
|
||||||
|
{û}{{\^{u}}}1
|
||||||
|
{ù}{{\`{u}}}1
|
||||||
|
{â}{{\^{a}}}1
|
||||||
|
{à}{{\`{a}}}1
|
||||||
|
{î}{{\^{i}}}1
|
||||||
|
{ô}{{\^{o}}}1
|
||||||
|
{ç}{{\c{c}}}1
|
||||||
|
{Ç}{{\c{C}}}1
|
||||||
|
{É}{{\'{E}}}1
|
||||||
|
{Ê}{{\^{E}}}1
|
||||||
|
{À}{{\`{A}}}1
|
||||||
|
{Â}{{\^{A}}}1
|
||||||
|
{Î}{{\^{I}}}1
|
||||||
|
}
|
||||||
|
|
||||||
|
\DeclareCaptionFont{blue}{\color{blue}}
|
||||||
|
\DeclareCaptionFont{black}{\color{black}}
|
||||||
|
|
||||||
|
\captionsetup[lstlisting]{labelfont=black,textfont=black, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}
|
||||||
|
|
||||||
|
|
||||||
|
\input{commands/commands}
|
||||||
|
|
||||||
|
% Rename listing
|
||||||
|
\renewcommand{\lstlistlistingname}{Liste des fichiers sources}
|
||||||
|
|
||||||
|
\graphicspath{{./logo/}}
|
||||||
|
|
||||||
|
%Header and footer
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
\rhead{\studentNameA, \studentNameB, \studentNameC}
|
||||||
|
\lhead{\courseName, \projectname}
|
||||||
|
\cfoot{\thepage}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\pagenumbering{gobble}
|
||||||
|
|
||||||
|
%Title page
|
||||||
|
\begin{titlepage}
|
||||||
|
\include{coverpage/coverpage}
|
||||||
|
\end{titlepage}
|
||||||
|
|
||||||
|
\pagenumbering{roman}
|
||||||
|
|
||||||
|
% Display the files
|
||||||
|
\setcounter{tocdepth}{2}
|
||||||
|
\lstlistoflistings
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
|
\pagenumbering{arabic}
|
||||||
|
|
||||||
|
\input{chapters/code}
|
||||||
|
|
||||||
|
\end{document}
|
||||||
Reference in New Issue
Block a user