revision1

This commit is contained in:
josi 2024-05-08 22:29:54 +02:00
parent d2d568da82
commit 52c256d47b
2 changed files with 236 additions and 236 deletions

View File

@ -1650,10 +1650,10 @@ bool SAL_tlsSignatureVerify(int sigAlg,octad *BUFF,octad *SIG,octad *PUBKEY)
end = _rdtsc(); end = _rdtsc();
uint64_t elapsed_ticks = end - start; uint64_t elapsed_ticks = end - start;
double elapsed_microseconds = (double)elapsed_ticks; double elapsed_miliseconds = (double)elapsed_ticks;
// JS 3.8 je frekvencia pouziteho CPU, 1e6 transformuje hodnotu citacu na ms // JS 3.8 je frekvencia pouziteho CPU, 1e6 transformuje hodnotu citacu na ms
printf("Elapsed time: %.2f microseconds\n", elapsed_microseconds / (3.8 * 1e6)); printf("Elapsed time: %.2f ms\n", elapsed_miliseconds / (3.8 * 1e6));
return result; return result;
} }

View File

@ -8,176 +8,176 @@ liboqs 0.10.0
18.04.2024 18.04.2024
RSA_PSS_RSAE_SHA256 RSA_PSS_RSAE_SHA256
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
Elapsed time: 0.18 microseconds Elapsed time: 0.18 ms
Elapsed time: 0.18 microseconds Elapsed time: 0.18 ms
Elapsed time: 0.21 microseconds Elapsed time: 0.21 ms
Elapsed time: 0.19 microseconds Elapsed time: 0.19 ms
Elapsed time: 0.18 microseconds Elapsed time: 0.18 ms
Elapsed time: 0.29 microseconds Elapsed time: 0.29 ms
Elapsed time: 0.19 microseconds Elapsed time: 0.19 ms
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
ECDSA_SECP384R1_SHA384 ECDSA_SECP384R1_SHA384
Elapsed time: 0.29 microseconds Elapsed time: 0.29 ms
Elapsed time: 0.72 microseconds Elapsed time: 0.72 ms
Elapsed time: 0.77 microseconds Elapsed time: 0.77 ms
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
Elapsed time: 0.72 microseconds Elapsed time: 0.72 ms
Elapsed time: 0.84 microseconds Elapsed time: 0.84 ms
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
Elapsed time: 0.72 microseconds Elapsed time: 0.72 ms
Elapsed time: 0.75 microseconds Elapsed time: 0.75 ms
dilithium2 dilithium2
Elapsed time: 0.12 microseconds Elapsed time: 0.12 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.07 microseconds Elapsed time: 0.07 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.07 microseconds Elapsed time: 0.07 ms
Dilithium2 Dilithium2
Elapsed time: 0.13 microseconds Elapsed time: 0.13 ms
Elapsed time: 0.72 microseconds Elapsed time: 0.72 ms
Elapsed time: 0.11 microseconds Elapsed time: 0.11 ms
Elapsed time: 0.12 microseconds Elapsed time: 0.12 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.11 microseconds Elapsed time: 0.11 ms
Elapsed time: 0.13 microseconds Elapsed time: 0.13 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.11 microseconds Elapsed time: 0.11 ms
Dilithium5 Dilithium5
Elapsed time: 0.21 microseconds Elapsed time: 0.21 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.28 microseconds Elapsed time: 0.28 ms
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
Elapsed time: 0.75 microseconds Elapsed time: 0.75 ms
Elapsed time: 0.19 microseconds Elapsed time: 0.19 ms
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.19 microseconds Elapsed time: 0.19 ms
falcon1024 falcon1024
Elapsed time: 0.10 microseconds Elapsed time: 0.10 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.06 microseconds Elapsed time: 0.06 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.06 microseconds Elapsed time: 0.06 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.06 microseconds Elapsed time: 0.06 ms
falcon512 falcon512
Elapsed time: 0.07 microseconds Elapsed time: 0.07 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.03 microseconds Elapsed time: 0.03 ms
Elapsed time: 0.05 microseconds Elapsed time: 0.05 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.03 microseconds Elapsed time: 0.03 ms
Elapsed time: 0.05 microseconds Elapsed time: 0.05 ms
Elapsed time: 0.75 microseconds Elapsed time: 0.75 ms
Elapsed time: 0.03 microseconds Elapsed time: 0.03 ms
mldsa44 mldsa44
Elapsed time: 0.10 microseconds Elapsed time: 0.10 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.11 microseconds Elapsed time: 0.11 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.07 microseconds Elapsed time: 0.07 ms
Elapsed time: 0.09 microseconds Elapsed time: 0.09 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
mldsa65 mldsa65
Elapsed time: 0.14 microseconds Elapsed time: 0.14 ms
Elapsed time: 0.75 microseconds Elapsed time: 0.75 ms
Elapsed time: 0.11 microseconds Elapsed time: 0.11 ms
Elapsed time: 0.13 microseconds Elapsed time: 0.13 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.11 microseconds Elapsed time: 0.11 ms
Elapsed time: 0.13 microseconds Elapsed time: 0.13 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.17 microseconds Elapsed time: 0.17 ms
mldsa87 mldsa87
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.18 microseconds Elapsed time: 0.18 ms
Elapsed time: 0.19 microseconds Elapsed time: 0.19 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.27 microseconds Elapsed time: 0.27 ms
Elapsed time: 0.19 microseconds Elapsed time: 0.19 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.23 microseconds Elapsed time: 0.23 ms
sphincssha2128fsimple sphincssha2128fsimple
Elapsed time: 1.49 microseconds Elapsed time: 1.49 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 1.42 microseconds Elapsed time: 1.42 ms
Elapsed time: 1.48 microseconds Elapsed time: 1.48 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 1.39 microseconds Elapsed time: 1.39 ms
Elapsed time: 1.49 microseconds Elapsed time: 1.49 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 1.39 microseconds Elapsed time: 1.39 ms
sphincssha2128ssimple sphincssha2128ssimple
Elapsed time: 0.53 microseconds Elapsed time: 0.53 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 0.54 microseconds Elapsed time: 0.54 ms
Elapsed time: 0.67 microseconds Elapsed time: 0.67 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.52 microseconds Elapsed time: 0.52 ms
Elapsed time: 0.58 microseconds Elapsed time: 0.58 ms
Elapsed time: 0.73 microseconds Elapsed time: 0.73 ms
Elapsed time: 0.70 microseconds Elapsed time: 0.70 ms
sphincsshake128fsimple sphincsshake128fsimple
Elapsed time: 2.24 microseconds Elapsed time: 2.24 ms
Elapsed time: 0.72 microseconds Elapsed time: 0.72 ms
Elapsed time: 2.24 microseconds Elapsed time: 2.24 ms
Elapsed time: 2.23 microseconds Elapsed time: 2.23 ms
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 2.26 microseconds Elapsed time: 2.26 ms
Elapsed time: 2.23 microseconds Elapsed time: 2.23 ms
Elapsed time: 0.72 microseconds Elapsed time: 0.72 ms
Elapsed time: 2.43 microseconds Elapsed time: 2.43 ms
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
TEST #2 TEST #2
@ -187,175 +187,175 @@ liboqs 0.10.0
18.04.2024 18.04.2024
ECDSA_SECP256R1_SHA256 ECDSA_SECP256R1_SHA256
Elapsed time: 0.53 microseconds Elapsed time: 0.53 ms
Elapsed time: 0.43 microseconds Elapsed time: 0.43 ms
Elapsed time: 0.97 microseconds Elapsed time: 0.97 ms
Elapsed time: 0.71 microseconds Elapsed time: 0.71 ms
Elapsed time: 0.51 microseconds Elapsed time: 0.51 ms
Elapsed time: 0.91 microseconds Elapsed time: 0.91 ms
Elapsed time: 0.42 microseconds Elapsed time: 0.42 ms
Elapsed time: 0.59 microseconds Elapsed time: 0.59 ms
Elapsed time: 0.75 microseconds Elapsed time: 0.75 ms
RSA_PSS_RSAE_SHA256 RSA_PSS_RSAE_SHA256
Elapsed time: 0.42 microseconds Elapsed time: 0.42 ms
Elapsed time: 0.38 microseconds Elapsed time: 0.38 ms
Elapsed time: 0.42 microseconds Elapsed time: 0.42 ms
Elapsed time: 1.04 microseconds Elapsed time: 1.04 ms
Elapsed time: 0.50 microseconds Elapsed time: 0.50 ms
Elapsed time: 0.41 microseconds Elapsed time: 0.41 ms
Elapsed time: 0.59 microseconds Elapsed time: 0.59 ms
Elapsed time: 0.50 microseconds Elapsed time: 0.50 ms
Elapsed time: 0.50 microseconds Elapsed time: 0.50 ms
DILITHIUM2 DILITHIUM2
Elapsed time: 0.42 microseconds Elapsed time: 0.42 ms
Elapsed time: 1.41 microseconds Elapsed time: 1.41 ms
Elapsed time: 0.18 microseconds Elapsed time: 0.18 ms
Elapsed time: 0.45 microseconds Elapsed time: 0.45 ms
Elapsed time: 1.40 microseconds Elapsed time: 1.40 ms
Elapsed time: 0.21 microseconds Elapsed time: 0.21 ms
Elapsed time: 0.45 microseconds Elapsed time: 0.45 ms
Elapsed time: 1.44 microseconds Elapsed time: 1.44 ms
Elapsed time: 0.81 microseconds Elapsed time: 0.81 ms
DILITHIUM3 DILITHIUM3
Elapsed time: 0.68 microseconds Elapsed time: 0.68 ms
Elapsed time: 1.49 microseconds Elapsed time: 1.49 ms
Elapsed time: 0.33 microseconds Elapsed time: 0.33 ms
Elapsed time: 0.68 microseconds Elapsed time: 0.68 ms
Elapsed time: 1.40 microseconds Elapsed time: 1.40 ms
Elapsed time: 0.33 microseconds Elapsed time: 0.33 ms
Elapsed time: 0.68 microseconds Elapsed time: 0.68 ms
Elapsed time: 1.40 microseconds Elapsed time: 1.40 ms
Elapsed time: 0.35 microseconds Elapsed time: 0.35 ms
DILITHIUM5 DILITHIUM5
Elapsed time: 1.12 microseconds Elapsed time: 1.12 ms
Elapsed time: 1.40 microseconds Elapsed time: 1.40 ms
Elapsed time: 0.40 microseconds Elapsed time: 0.40 ms
Elapsed time: 1.02 microseconds Elapsed time: 1.02 ms
Elapsed time: 2.36 microseconds Elapsed time: 2.36 ms
Elapsed time: 0.62 microseconds Elapsed time: 0.62 ms
Elapsed time: 1.07 microseconds Elapsed time: 1.07 ms
Elapsed time: 1.40 microseconds Elapsed time: 1.40 ms
Elapsed time: 0.52 microseconds Elapsed time: 0.52 ms
FALCON1024 FALCON1024
Elapsed time: 0.59 microseconds Elapsed time: 0.59 ms
Elapsed time: 3.83 microseconds Elapsed time: 3.83 ms
Elapsed time: 0.35 microseconds Elapsed time: 0.35 ms
Elapsed time: 0.18 microseconds Elapsed time: 0.18 ms
Elapsed time: 1.51 microseconds Elapsed time: 1.51 ms
Elapsed time: 0.15 microseconds Elapsed time: 0.15 ms
Elapsed time: 0.28 microseconds Elapsed time: 0.28 ms
Elapsed time: 1.91 microseconds Elapsed time: 1.91 ms
Elapsed time: 0.19 microseconds Elapsed time: 0.19 ms
FALCON512 FALCON512
Elapsed time: 0.47 microseconds Elapsed time: 0.47 ms
Elapsed time: 4.07 microseconds Elapsed time: 4.07 ms
Elapsed time: 0.20 microseconds Elapsed time: 0.20 ms
Elapsed time: 0.28 microseconds Elapsed time: 0.28 ms
Elapsed time: 1.41 microseconds Elapsed time: 1.41 ms
Elapsed time: 0.08 microseconds Elapsed time: 0.08 ms
Elapsed time: 0.29 microseconds Elapsed time: 0.29 ms
Elapsed time: 3.69 microseconds Elapsed time: 3.69 ms
Elapsed time: 0.26 microseconds Elapsed time: 0.26 ms
MLDSA44 MLDSA44
Elapsed time: 0.55 microseconds Elapsed time: 0.55 ms
Elapsed time: 3.73 microseconds Elapsed time: 3.73 ms
Elapsed time: 0.27 microseconds Elapsed time: 0.27 ms
Elapsed time: 0.46 microseconds Elapsed time: 0.46 ms
Elapsed time: 3.07 microseconds Elapsed time: 3.07 ms
Elapsed time: 0.21 microseconds Elapsed time: 0.21 ms
Elapsed time: 0.23 microseconds Elapsed time: 0.23 ms
Elapsed time: 1.92 microseconds Elapsed time: 1.92 ms
Elapsed time: 0.25 microseconds Elapsed time: 0.25 ms
MLDSA65 MLDSA65
Elapsed time: 0.74 microseconds Elapsed time: 0.74 ms
Elapsed time: 1.48 microseconds Elapsed time: 1.48 ms
Elapsed time: 0.24 microseconds Elapsed time: 0.24 ms
Elapsed time: 0.67 microseconds Elapsed time: 0.67 ms
Elapsed time: 2.50 microseconds Elapsed time: 2.50 ms
Elapsed time: 0.37 microseconds Elapsed time: 0.37 ms
Elapsed time: 0.68 microseconds Elapsed time: 0.68 ms
Elapsed time: 1.42 microseconds Elapsed time: 1.42 ms
Elapsed time: 0.61 microseconds Elapsed time: 0.61 ms
MLDSA87 MLDSA87
Elapsed time: 1.09 microseconds Elapsed time: 1.09 ms
Elapsed time: 1.42 microseconds Elapsed time: 1.42 ms
Elapsed time: 0.38 microseconds Elapsed time: 0.38 ms
Elapsed time: 1.05 microseconds Elapsed time: 1.05 ms
Elapsed time: 1.50 microseconds Elapsed time: 1.50 ms
Elapsed time: 0.39 microseconds Elapsed time: 0.39 ms
Elapsed time: 1.04 microseconds Elapsed time: 1.04 ms
Elapsed time: 1.42 microseconds Elapsed time: 1.42 ms
Elapsed time: 0.41 microseconds Elapsed time: 0.41 ms
SPHINCS_SHA2_128F_SIMPLE SPHINCS_SHA2_128F_SIMPLE
Elapsed time: 7.59 microseconds Elapsed time: 7.59 ms
Elapsed time: 2.27 microseconds Elapsed time: 2.27 ms
Elapsed time: 4.51 microseconds Elapsed time: 4.51 ms
Elapsed time: 7.71 microseconds Elapsed time: 7.71 ms
Elapsed time: 1.40 microseconds Elapsed time: 1.40 ms
Elapsed time: 2.74 microseconds Elapsed time: 2.74 ms
Elapsed time: 8.73 microseconds Elapsed time: 8.73 ms
Elapsed time: 2.24 microseconds Elapsed time: 2.24 ms
Elapsed time: 4.54 microseconds Elapsed time: 4.54 ms
SPHINCS_SHA2_128S_SIMPLE SPHINCS_SHA2_128S_SIMPLE
Elapsed time: 2.58 microseconds Elapsed time: 2.58 ms
Elapsed time: 1.44 microseconds Elapsed time: 1.44 ms
Elapsed time: 0.97 microseconds Elapsed time: 0.97 ms
Elapsed time: 2.45 microseconds Elapsed time: 2.45 ms
Elapsed time: 4.38 microseconds Elapsed time: 4.38 ms
Elapsed time: 3.43 microseconds Elapsed time: 3.43 ms
Elapsed time: 2.48 microseconds Elapsed time: 2.48 ms
Elapsed time: 2.30 microseconds Elapsed time: 2.30 ms
Elapsed time: 2.39 microseconds Elapsed time: 2.39 ms
SPHINCS_SHAKE_128F_SIMPLE SPHINCS_SHAKE_128F_SIMPLE
Elapsed time: 10.59 microseconds Elapsed time: 10.59 ms
Elapsed time: 1.46 microseconds Elapsed time: 1.46 ms
Elapsed time: 4.11 microseconds Elapsed time: 4.11 ms
Elapsed time: 10.41 microseconds Elapsed time: 10.41 ms
Elapsed time: 2.39 microseconds Elapsed time: 2.39 ms
Elapsed time: 6.33 microseconds Elapsed time: 6.33 ms
Elapsed time: 10.92 microseconds Elapsed time: 10.92 ms
Elapsed time: 2.46 microseconds Elapsed time: 2.46 ms
Elapsed time: 6.58 microseconds Elapsed time: 6.58 ms