From 1e316c9a7437580f499453cdafbb0c7433a46b88 Mon Sep 17 00:00:00 2001
From: Dennis Brentjes <dennis@brentj.es>
Date: Sat, 18 Aug 2018 14:14:55 +0200
Subject: Processes review comments.

---
 appendices/appendix.tex | 50 ++++++++++++++++++++++++++++++++++---------------
 1 file changed, 35 insertions(+), 15 deletions(-)

(limited to 'appendices/appendix.tex')

diff --git a/appendices/appendix.tex b/appendices/appendix.tex
index e8787ea..c8358a8 100644
--- a/appendices/appendix.tex
+++ b/appendices/appendix.tex
@@ -3,6 +3,7 @@
 
 \section{Implementation}
 \label{app:impl}
+\label{app:code}
 
 \begin{table}[!ht]
 \begin{tabular}{l l}
@@ -66,19 +67,19 @@ both C and C++ optimization related compiler flags:
 \end{tabularx}
 \end{table}
 
-\section{Some scripts to do result processing}
-
-The script that converts the output from the statsd to a \LaTeX\xspace table format.
-
-\begin{lstlisting}
-cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; {if (NR == 1) {print "prepre (s) & premix (s) & prepost (s) & realpre (s) & realmix (s) & realpost (s) \\\\\hline\\hline";} else{ OFMT="%.2f"; c=1000000000; print ($5-$6)/c,"&",($1-$2)/c,"&",($3-$4)/c,"&",($11-$12)/c,"&",($7-$8)/c,"&",($9-$10)/c,"\\\\\\hline";}}'
-\end{lstlisting}
-
-Script that calculates the mean and standard deviation of each column.
-
-\begin{lstlisting}
-tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; { OFMT="%.2f"; c=1000000000; print ($5-$6)/c,($1-$2)/c,($3-$4)/c,($11-$12)/c,($7-$8)/c,($9-$10)/c;}' | awk '{for(i=1;i<=NF;i++) {sum[i] += $i; sumsq[i] += ($i)^2}} END {for (i=1;i<=NF;i++) {printf " & %.3f (%.3f)", sum[i]/NR, sqrt((sumsq[i]-sum[i]^2/NR)/NR)} printf("\n")}'
-\end{lstlisting}
+%\section{Some scripts to do result processing}
+%
+%The script that converts the output from the statsd to a \LaTeX\xspace table format.
+%
+%\begin{lstlisting}
+%cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; {if (NR == 1) {print "prepre (s) & premix (s) & prepost (s) & realpre (s) & realmix (s) & realpost (s) \\\\\hline\\hline";} else{ OFMT="%.2f"; c=1000000000; print ($5-$6)/c,"&",($1-$2)/c,"&",($3-$4)/c,"&",($11-$12)/c,"&",($7-$8)/c,"&",($9-$10)/c,"\\\\\\hline";}}'
+%\end{lstlisting}
+%
+%Script that calculates the mean and standard deviation of each column.
+%
+%\begin{lstlisting}
+%tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=",";}; { OFMT="%.2f"; c=1000000000; print ($5-$6)/c,($1-$2)/c,($3-$4)/c,($11-$12)/c,($7-$8)/c,($9-$10)/c;}' | awk '{for(i=1;i<=NF;i++) {sum[i] += $i; sumsq[i] += ($i)^2}} END {for (i=1;i<=NF;i++) {printf " & %.3f (%.3f)", sum[i]/NR, sqrt((sumsq[i]-sum[i]^2/NR)/NR)} printf("\n")}'
+%\end{lstlisting}
 
 \clearpage
 
@@ -188,8 +189,27 @@ tail -n +2 | cut -d ',' -f 2,5,8,11,14,17,20,23,26,29,32,35 | awk 'BEGIN {FS=","
 	
 \end{table}
 
-%%-----------------------------------------------------------------------
-%
+\newpage
+\section{crypto interface}
+\lstinputlisting[
+language=C++, 
+caption={ed25519.h},
+label={lst:ed25519.h},
+keywordstyle=\color{blue},
+stringstyle=\color{red}
+]{appendices/ed25519.h}
+
+\newpage
+\lstinputlisting[
+language=C++,
+caption={elgamal.h},
+label={lst:elgamal.h},
+keywordstyle=\color{blue},
+stringstyle=\color{red}
+]{appendices/elgamal.h}
+
+%=======
+%-----------------------------------------------------------------------
 %\vfill
 %\clearpage
 %
-- 
cgit v1.2.3-70-g09d2

