<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\appendix

\chapter{Installation}
These installation instructions are meant to run the code developed within this thesis for development- and review-purposes.
For a comprehensive installation instruction follow the Taler documentation
\cite{taler-documentation}.

\begin{bfhNoteBox}
    These instructions are used and tested on Ubuntu 21.10.
\end{bfhNoteBox}

\section{Dependencies and Setup}
The following dependencies need to be installed for GNUnet and Taler Exchange:
\setupLinuxPrompt{student}
\begin{ubuntu}
sudo apt update
sudo apt install git curl build-essential gcc automake make \ texinfo autoconf uncrustify libtool pkgconf gettext gnutls-bin \ libcurl4-gnutls-dev libgcrypt20-dev libidn2-dev libjansson-dev \ libnss3-dev sqlite pipenv libltdl-dev libsodium-dev libpq-dev \ autopoint libunistring-dev libextractor-dev libpng-dev \ libpulse-dev libsqlite3-dev recutils python3-jinja2 sqlite yapf3 \ postgresql libpq-dev wget libmicrohttpd-dev
export LD\_LIBRARY\_PATH=/usr/local/lib
\end{ubuntu}

\begin{bfhBox}[BFH-MediumBlue]{Install in a container}
The installation can also be done in a docker or podman container with the ubuntu:21.10 image:
\setupLinuxPrompt{student}
\begin{ubuntu}
podman run -it --name talertest ubuntu:21.10
\end{ubuntu}
\end{bfhBox}

\section{Install GNUnet Core}
GNUnet core is both a dependency of the Taler exchange and where we implemented the Clause Blind Schnorr Signature Scheme.
\setupLinuxPrompt{student}
\begin{ubuntu}
git clone https://git.gnunet.org/gnunet.git
cd gnunet
./bootstrap
./configure --enable-benchmarks --prefix=/usr/local
make
make install
make check # Run optionally to verify installation and run tests
\end{ubuntu}

To run benchmarks run:
\setupLinuxPrompt{student}
\begin{ubuntu}
./src/util/perf_crypto_cs
./src/util/perf_crypto_rsa
\end{ubuntu}

\section{Install Taler Exchange}
\begin{bfhWarnBox}
Ensure that the current user has privileges in postgresql.
One possible way to do this is:\\
(where [user] has to be replaced with the name of the system user running the tests)
\setupLinuxPrompt{student}
\begin{ubuntu}
service postgresql start
sudo su
su - postgres
psql
CREATE ROLE [user] LOGIN SUPERUSER;
CREATE DATABASE [user] OWNER [user];
exit
\end{ubuntu}
\end{bfhWarnBox}

The Taler exchange can be installed as followed:
\setupLinuxPrompt{student}
\begin{ubuntu}
service postgresql start
createdb talercheck
git clone https://git.taler.net/exchange.git
cd exchange
./bootstrap
./configure --with-gnunet=/usr/local --prefix=/usr/local
./make
./make install
./make check # Run optionally to verify installation and run tests
\end{ubuntu}

To execute the security module benchmarks run:
\setupLinuxPrompt{student}
\begin{ubuntu}
cd src/util
./test_helper_cs
./test_helper_rsa
\end{ubuntu}

\chapter{Performance Measurements}
\label{chap:app-perf}

\section{AMD Ryzen 7 PRO 5850U (Notebook)}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-amd-ryzen-7}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU: 8-core AMD Ryzen 7 PRO 5850U \\
    Architecture: amd64 \\
    OS: Ubuntu 21.10 Linux 5.13.0-25-generic \#26-Ubuntu SMP Fri Jan 7 15:48:31 UTC 2022 x86\_64 x86\_64 x86\_64 GNU/Linux \\
    libsodium:amd64 version: 1.0.18-1build1 \\ 
    libgcrypt:amd64 version: 1.8.7-5ubuntu2 
\end{bfhBox}

\begin{table}[h]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 0.204 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 126 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 903 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 2684 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 10 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 0.444 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.094 ms \\\hline
        CS &amp; 10x blinding &amp; 3.332 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 1.282 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 3.012 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 5 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 9 ms \\\hline
        \hline
        CS &amp; 10x signing &amp; 0.077 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp; 7 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 34 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 86 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 183 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.001 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 2.991 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 10 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 24 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 44 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 1.358 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 0.876 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 1.836 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 3.075 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 5 ms \\\hline
    \end{tabular}
    \caption{Comparison on AMD Ryzen 7}
    \label{tab:comp-sign-amd-ryzen-7}
\end{table}

\section{Intel(R) Core(TM) i7-8565U}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-intel-i7}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU: 8-core  Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz \\
    Architecture: amd64 \\
    OS: Ubuntu 21.10 Linux 5.13.0-25-generic \#26-Ubuntu SMP Fri Jan 7 15:48:31 UTC 2022 x86\_64 x86\_64 x86\_64 GNU/Linux \\
    libsodium:amd64 version: 1.0.18-1build1 \\ 
    libgcrypt:amd64 version: 1.8.7-5ubuntu2 
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 1.05 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 189 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 1555 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 5000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 11 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 2.261 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.521 ms \\\hline
        CS &amp; 10x blinding &amp; 13 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 2.6 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 4.12 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 7 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 11 ms \\\hline
        \hline
        CS &amp; 10x signing &amp; 0.405 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp; 9 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 44 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 108 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 216 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.005 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 3.353 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 12 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 27 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 47 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 4.413 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 1.202 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 2.304 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 4.094 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 6 ms \\\hline
    \end{tabular}
    \caption{Comparison on Intel(R) Core(TM) i7-8565U}
    \label{tab:comp-sign-intel-i7}
\end{table}

\section{AMD Ryzen Threadripper 1950X 16-Core Processor}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-amd-threadripper}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU: AMD Ryzen Threadripper 1950X 16-Core Processor \\
    Architecture: amd64 \\
    OS: Linux 5.13.0-trunk-amd64 \#1 SMP Debian 5.13.12-1~exp1
    (2021-08-20) x86\_64 GNU/Linux \\
    libsodium:amd64 version: 1.9.4-5 \\ 
    libgcrypt:amd64 version: 1.0.18-1 
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 0.442 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 145 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 1167 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 6000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 11 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp;  1.043 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.242 ms \\\hline
        CS &amp; 10x blinding &amp; 7 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp;  2.258 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp;  4.744 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp;  9 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp;  14 ms \\\hline
        \hline
        CS &amp; 10x signing &amp;  0.270 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp;  10 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp;  47 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp;  119 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp;  248 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.003 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp;  4.086 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp;  14 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp;  34 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp;  60 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 2.392 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp;  1.137 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp;  2.797 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp;  5 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp;  7 ms \\\hline
    \end{tabular}
    \caption{Comparison on AMD Ryzen Threadripper 1950X}
    \label{tab:comp-sign-amd-threadripper}
\end{table}

\section{Intel(R) Xeon(R) CPU E5-2630}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-intel-xeon}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz \\
    Architecture: amd64 \\
    OS:  Linux 5.10.0-8-amd64 \#1 SMP Debian 5.10.46-4 (2021-08-03) x86\_64\\
    libsodium:amd64 version:  1.0.18-1\\ 
    libgcrypt:amd64 version:  1.8.7-6
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 0.606 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 329 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 3210 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 12 000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 40 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp;  1.527 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp;  0.329 ms \\\hline
        CS &amp; 10x blinding &amp; 9 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp;  4.026 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp;  9 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp;  18 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp;  27 ms \\\hline
        \hline
        CS &amp; 10x signing &amp;  0.274 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp;  21 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp;  96 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp;  237 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp;  482 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp;  0.004 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 7 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 25 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 58 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 99 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 4.334 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 2.190 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 5 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 11 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 14 ms \\\hline
    \end{tabular}
    \caption{Comparison on Intel(R) Xeon(R) CPU E5-2630}
    \label{tab:comp-sign-intel-xeon}
\end{table}

\section{Intel(R) Pentium(R) 3558U}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-intel-pentium}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU: Intel(R) Pentium(R) 3558U @ 1.70GHz \\
    Architecture: amd64 \\
    OS: Linux 5.10.0-8-amd64 \#1 SMP Debian 5.10.46-3 (2021-07-28) x86\_64\\
    libsodium:amd64 version:  1.0.18-1\\ 
    libgcrypt:amd64 version:  1.8.7-6
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 0.53 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 524 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 3357 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 15 000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 37 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 1.375 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.349 ms \\\hline
        CS &amp; 10x blinding &amp; 8 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 4.86 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 11 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 19 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 31 ms \\\hline
        \hline
        CS &amp; 10x signing &amp;  0.283 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp; 26 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 117 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 292 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 571 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.003 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 8 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 30 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 67 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 111 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 3.769 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 2.616 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 6 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 11 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 17 ms \\\hline
    \end{tabular}
    \caption{Comparison on Intel(R) Pentium(R) 3558U}
    \label{tab:comp-sign-intel-pentium}
\end{table}


\section{arm64}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-arm64}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU:  8-core arm64\\
    Architecture: ARM64 \\
    OS: Linux ten64 5.11.0-31-generic \#33+testsfp1 SMP Mon Aug 23 16:07:41 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux \\
    libsodium:arm64 version: 1.8.7-2ubuntu2.1  \\ 
    libgcrypt:arm64 version: 1.0.18-1
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 2.896 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 839 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 8000 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 17 000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 82 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 6 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.713 ms \\\hline
        CS &amp; 10x blinding &amp; 23 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 11 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 28 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 51 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 81 ms \\\hline
        \hline
        CS &amp; 10x signing &amp; 0.321 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp;  57 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 263 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 685 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 1385 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.006 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp;  23 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp;  79 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 171 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 296 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 11ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp;  5 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 15 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 27 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 45 ms \\\hline
    \end{tabular}
    \caption{Comparison on arm64}
    \label{tab:comp-sign-arm64}
\end{table}

\section{AMD Ryzen Embedded R1606G}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-amd-embedded}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU: 4-core AMD Ryzen Embedded R1606G with Radeon Vega Gfx\\
    Architecture: amd64 \\
    OS: Linux computer 5.13.0-25-generic \#26-Ubuntu SMP Fri Jan 7 15:48:31 UTC 2022 x86\_64 x86\_64 x86\_64 GNU/Linux\\
    libsodium:amd64 version: 1.8.7-5ubuntu2  \\ 
    libgcrypt:amd64 version: 1.0.18-1build1
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 2.373 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 184 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 2132 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 8000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 21 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 1.09 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.43 ms \\\hline
        CS &amp; 10x blinding &amp; 6 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 3.886 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 7 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 14 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 23 ms \\\hline
        \hline
        CS &amp; 10x signing &amp; 0.379 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp; 15 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 71 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 177 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 357 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.001 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 6 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 24 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 53 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 93 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 2.610 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 2.303 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 4.386 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 7 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 11 ms \\\hline
    \end{tabular}
    \caption{Comparison on AMD Ryzen Embedded R1606G}
    \label{tab:comp-sign-amd-embedded}
\end{table}

\section{risc64}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-risc64}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU:  4-core risc64 processor\\
    OS: Linux risc-v-unleashed-000 5.11.0-1022-generic \#23~20.04.1-Ubuntu SMP Thu Oct 21 10:16:27 UTC 2021 riscv64 riscv64 riscv64 GNU/Linux\\
    libsodium:riscv64 version: 1.8.7-5ubuntu2  \\ 
    libgcrypt:riscv64 version: 1.0.18-1build1
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 4.144 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 2923 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 28 000 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 174 000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 600 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 10 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 2.514 ms \\\hline
        CS &amp; 10x blinding &amp; 72 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 37 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 93 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 170 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 277 ms \\\hline
        \hline
        CS &amp; 10x signing &amp; 1.697 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp; 215 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 1040 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 2883 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 5000 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.022 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 62 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 150 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 275 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 431 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 29 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 22 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 54 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 99 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 166 ms \\\hline
    \end{tabular}
    \caption{Comparison on risc64}
    \label{tab:comp-sign-risc64}
\end{table}

\section{POWER9}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-POWER9}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU:  176-core power9\\
    architecture: pp64le \\
    OS: Linux power9 5.11.0-34-generic \#36-Ubuntu SMP Thu Aug 26 19:19:54 UTC 2021 ppc64le ppc64le ppc64le GNU/Linux \\
    libsodium:a::ppc64el version: 1.8.7-2ubuntu2.1  \\ 
    libgcrypt::ppc64el version: 1.0.18-1
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 0.275 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 290 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 3743 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 15 000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 45 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 0.749 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.267 ms \\\hline
        CS &amp; 10x blinding &amp; 4.996 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 3.952 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 10 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 17 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 27 ms \\\hline
        \hline
        CS &amp; 10x signing &amp; 0.221 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp; 25 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 135 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 381 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 762 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.002 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 9 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 34 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 80 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 141 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 2.458 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 2.365 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 6 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 10 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 16 ms \\\hline
    \end{tabular}
    \caption{Comparison on POWER9}
    \label{tab:comp-sign-POWER9}
\end{table}

\section{ARMv7 Processor}
Detailed comparison of each operation can be found in table \ref{tab:comp-sign-armv7}.
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU:  8-core ARMv7 Processor rev 3 (v7l)
    Architecture: armv7 \\
    OS: Linux odroidxu4 4.14.150-odroidxu4 \#2 SMP PREEMPT Mon Oct 28 08:07:45 CET 2019 armv7l GNU/Linux\\
    libsodium:armhf version: 1.9.4-5   \\ 
    libgcrypt:armhf version: 1.0.18-1
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{llr}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Operation} &amp; \textbf{Speed} \\\hline
        CS &amp; 10x key generation &amp; 1.719 ms \\\hline
        RSA 1024 bit &amp; 10x key generation &amp; 1050 ms \\\hline
        RSA 2048 bit &amp; 10x key generation &amp; 8000 ms \\\hline
        RSA 3072 bit &amp; 10x key generation &amp; 53 000 ms \\\hline
        RSA 4096 bit &amp; 10x key generation &amp; 159 000 ms \\\hline
        \hline
        CS &amp; 10x r0, r1 derive and R1,R2 calculation &amp; 3.621 ms \\\hline
        CS &amp; 10x derivation of blinding secrets &amp; 0.514 ms \\\hline
        CS &amp; 10x blinding &amp; 24 ms \\\hline
        RSA 1024 bit &amp; 10x blinding &amp; 10 ms \\\hline
        RSA 2048 bit &amp; 10x blinding &amp; 26 ms \\\hline
        RSA 3072 bit &amp; 10x blinding &amp; 45 ms \\\hline
        RSA 4096 bit &amp; 10x blinding &amp; 78 ms \\\hline
        \hline
        CS &amp; 10x signing &amp; 0.481 ms \\\hline
        RSA 1024 bit &amp; 10x signing &amp; 87 ms \\\hline
        RSA 2048 bit &amp; 10x signing &amp; 385 ms \\\hline
        RSA 3072 bit &amp; 10x signing &amp; 1038 ms \\\hline
        RSA 4096 bit &amp; 10x signing &amp; 2073 ms \\\hline
        \hline
        CS &amp; 10x unblinding &amp; 0.008 ms \\\hline
        RSA 1024 bit &amp; 10x unblinding &amp; 26 ms \\\hline
        RSA 2048 bit &amp; 10x unblinding &amp; 90 ms \\\hline
        RSA 3072 bit &amp; 10x unblinding &amp; 195 ms \\\hline
        RSA 4096 bit &amp; 10x unblinding &amp; 344 ms \\\hline
        \hline
        CS &amp; 10x verifying &amp; 11 ms \\\hline
        RSA 1024 bit &amp; 10x verifying &amp; 5 ms \\\hline
        RSA 2048 bit &amp; 10x verifying &amp; 15 ms \\\hline
        RSA 3072 bit &amp; 10x verifying &amp; 28 ms \\\hline
        RSA 4096 bit &amp; 10x verifying &amp; 42 ms \\\hline
    \end{tabular}
    \caption{Comparison on ARMv7}
    \label{tab:comp-sign-armv7}
\end{table}


\section{Performance of the Security Module}
These performance measurements are only done on one hardware setup.
The performance tests of the cryptographic routines are more meaningful, the architecture of the Taler exchange could change a lot.
Furthermore, there could be made performance improvements at costs of security by doing the operations requiring the private keys directly in the httpd process.
Because of security reasons, the current design with the security module makes a lot of sense. 
It has to be kept in mind that the following performance benchmarks are interesting to see, but could vary a lot with changes inside the codebase.
The performance of the signatures with the security module can be found in table \ref{tab:comp-sign-full}
\begin{bfhBox}[BFH-MediumBlue]{Setup}
	CPU: 8-core AMD Ryzen 7 PRO 5850U \\
    OS: Ubuntu 21.10 Linux 5.13.0-25-generic \#26-Ubuntu SMP Fri Jan 7 15:48:31 UTC 2022 x86\_64 x86\_64 x86\_64 GNU/Linux \\
    libsodium version: 1.0.18-1build1 \\ 
    libgcrypt version: 1.8.7-5ubuntu2 
\end{bfhBox}

\begin{table}[ht]
    \centering
    \colorlet{BFH-table}{BFH-MediumBlue!10}
    \colorlet{BFH-tablehead}{BFH-MediumBlue!50}
    \setupBfhTabular
    \begin{tabular}{lll}
        \rowcolor{BFH-tablehead}
        \textbf{Signature Scheme} &amp; \textbf{Test} &amp; \textbf{Speed} \\\hline
        CS &amp; 100 sequential signature operations &amp; 2.591 ms \\\hline
        RSA 1024 bit &amp; 100 sequential signature operations &amp; 79 ms \\\hline
        RSA 2048 bit &amp; 100 sequential signature operations &amp; 350 ms \\\hline
        RSA 3072 bit &amp; 100 sequential signature operations &amp; 893 ms \\\hline
        RSA 4092 &amp; 100 sequential signature operations &amp; 1811 ms \\\hline
        \hline
        CS &amp; 100 parallel signature operations &amp; 14 ms \\\hline
        RSA 1024 bit &amp; 100 parallel signature operations &amp; 125 ms \\\hline
        RSA 2048 bit &amp; 100 parallel signature operations &amp; 573ms \\\hline
        RSA 3072 bit &amp; 100 parallel signature operations &amp; 1420 ms \\\hline
        RSA 4092 &amp; 100 parallel signature operations &amp; 3279 ms \\\hline
        \hline
        CS &amp; 800 parallel signature operations &amp; 19 ms \\\hline
        RSA 1024 bit &amp; 800 parallel signature operations &amp; 137 ms \\\hline
        RSA 2048 bit &amp; 800 parallel signature operations &amp; 653 ms \\\hline
        RSA 3072 bit &amp; 800 parallel signature operations &amp; 1451 ms \\\hline
        RSA 4092 &amp; 800 parallel signature operations &amp; 3388 ms \\\hline
    \end{tabular}
    \caption{Performance comparison of the security module}
    \label{tab:comp-sign-full}
\end{table}

\input{content/appendix/rsa-redesign.tex}
</pre></body></html>