## 4 Experimental Results
### RSA vs. RSA Crypto Service Provider (CSP)--Encryption with National eID Biometric card  
The first experiment will compare the RSA class and RSA Crypto Service Provider class from the NET framework, in the encryption process, using the match-on-card processing system on national eID biometric card.  
The experiment will include all test vectors, and for each text file, the experiment will be executed 10 times. This will serve the accuracy of the experiment and will help to generate the average time, best time and worst time of execution.  
The experimental results, for all test vectors are shown in Table 1 and graphically in Figure 7.  
\begin{table}
\begin{tabular}{r r r r r r r r r r r r r r r r r} \hline \hline
**Size** & \multicolumn{2}{c}{**1 KB**} & \multicolumn{2}{c}{**10 KB**} & \multicolumn{2}{c}{**50 KB**} & \multicolumn{2}{c}{**100 KB**} & \multicolumn{2}{c}{**100 KB**} & \multicolumn{2}{c}{**1 MB**} & \multicolumn{2}{c}{**2 MB**} & \multicolumn{2}{c}{**5 MB**} & \multicolumn{2}{c}{**10 MB**} \\ \hline \#. & RSA & CSP & RSA & CSP & RSA & CSP & RSA & CSP & RSA & CSP & RSA & CSP & RSA & CSP & RSA & CSP & RSA & CSP \\ \hline
1 & 3.22 & 2.53 & 13.65 & 18.26 & 49.58 & 66.03 & 90.85 & 127.79 & 868.2 & 1235.4 & 1622.7 & 2466.8 & 4050.0 & 6553.7 & 8100.2 & 12,446.0 \\
2 & 0.87 & 1.81 & 11.41 & 12.56 & 41.28 & 62.38 & 84.34 & 123.08 & 58.126 & 1262.5 & 2449.4 & 4062.6 & 6792.8 & 8071.2 & 128,565.5 \\
3 & 0.87 & 1.33 & 7.86 & 12.91 & 41.07 & 60.54 & 81.37 & 119.40 & 81.27 & 1295.1 & 1262.7 & 2467.2 & 4056.1 & 6081.4 & 8040.1 & 12,174.1 \\
4 & 0.90 & 1.33 & 9.21 & 12.31 & 40.49 & 60.33 & 78.67 & 119.22 & 827.2 & 1387.7 & 1627.0 & 2449.3 & 4029.9 & 6348.8 & 8100.7 & 12,187.8 \\
5 & 0.82 & 2.00 & 7.86 & 12.39 & 42.08 & 60.52 & 97.90 & 1182.94 & 804.6 & 1312.5 & 1620.0 & 2466.6 & 4103.08 & 6991.3 & 8041.1 & 12,173.6 \\
6 & 0.81 & 1.33 & 8.46 & 12.22 & 47.41 & 59.45 & 78.41 & 118.89 & 804.6 & 1603.8 & 1608.9 & 2455.5 & 4241.8 & 6096.6 & 8617.1 & 12,258.2 \\
7 & 1.10 & 1.30 & 8.01 & 12.29 & 40.30 & 59.69 & 78.44 & 118.77 & 811.6 & 1299.4 & 1615.8 & 2459.8 & 4444.2 & 6082.7 & 8258.5 & 13/051.2 \\
8 & 0.82 & 1.23 & 8.44 & 12.20 & 39.21 & 59.52 & 79.38 & 1188.88 & 818.6 & 1285.9 & 1607.6 & 2448.7 & 4407.9 & 6076.6 & 8031.8 & 12,241.2 \\
9 & 0.83 & 1.57 & 7.98 & 12.33 & 39.27 & 59.77 & 105.83 & 118.90 & 804.7 & 1254.9 & 1631.4 & 2448.4 & 4413.8 & 6131.0 & 1226.5 & 12,189.7 \\
10 & 0.80 & 1.23 & 8.28 & 12.39 & 39.36 & 59.80 & 105.19 & 118.83 & 800.8 & 1218.1 & 1606.3 & 2446.7 & 4030.3 & 6095.1 & 8112.3 & 12,173.3 \\ \hline \hline \end{tabular}
\end{table}
Table 1: Results RSA vs. RSA Crypto Service Provider (CSP).  
Two things characterize this experiment. Firstly, as depicted in Figure 7, one can see from the first experiment that more time (expressed in milliseconds) will be spent at the beginning of an experimental cycle. This can be seen especially in the 1 KB and 10 KB experiment, where the processing time is greater in the first cycle. This because the time needed to load the data on the memory, as basic concepts from the memory organization of smart card memory [16]. After that, the time needed for processing is shorter.  
The second thing to notice is the change in processing time, when we increase the size of data. The processing time will be increased when we process a larger amount of data, but the class RSA performs better than the class RSA CSP. The difference in processing time increases with each larger data set, as shown in Table 2 and Figure 8.  
In this case, we can conclude that the class RSA is more efficient than RSA CSP, especially when we have a large amount of data.