From 52c256d47bd33765e51d37e3ce58c6634c7debec Mon Sep 17 00:00:00 2001 From: josi Date: Wed, 8 May 2024 22:29:54 +0200 Subject: [PATCH] revision1 --- PQ_TIIGER_TLS/sal/tls_sal_m.xpp | 4 +- ..._merania_casov_overovania_certifikatov.txt | 468 +++++++++--------- 2 files changed, 236 insertions(+), 236 deletions(-) diff --git a/PQ_TIIGER_TLS/sal/tls_sal_m.xpp b/PQ_TIIGER_TLS/sal/tls_sal_m.xpp index 3409565..7be6930 100644 --- a/PQ_TIIGER_TLS/sal/tls_sal_m.xpp +++ b/PQ_TIIGER_TLS/sal/tls_sal_m.xpp @@ -1650,10 +1650,10 @@ bool SAL_tlsSignatureVerify(int sigAlg,octad *BUFF,octad *SIG,octad *PUBKEY) end = _rdtsc(); 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 - printf("Elapsed time: %.2f microseconds\n", elapsed_microseconds / (3.8 * 1e6)); + printf("Elapsed time: %.2f ms\n", elapsed_miliseconds / (3.8 * 1e6)); return result; } diff --git a/appendixes/Vysledky_merania_casov_overovania_certifikatov.txt b/appendixes/Vysledky_merania_casov_overovania_certifikatov.txt index 2c7ad97..2330105 100644 --- a/appendixes/Vysledky_merania_casov_overovania_certifikatov.txt +++ b/appendixes/Vysledky_merania_casov_overovania_certifikatov.txt @@ -8,176 +8,176 @@ liboqs 0.10.0 18.04.2024 RSA_PSS_RSAE_SHA256 -Elapsed time: 0.20 microseconds -Elapsed time: 0.18 microseconds -Elapsed time: 0.18 microseconds +Elapsed time: 0.20 ms +Elapsed time: 0.18 ms +Elapsed time: 0.18 ms -Elapsed time: 0.21 microseconds -Elapsed time: 0.19 microseconds -Elapsed time: 0.18 microseconds +Elapsed time: 0.21 ms +Elapsed time: 0.19 ms +Elapsed time: 0.18 ms -Elapsed time: 0.29 microseconds -Elapsed time: 0.19 microseconds -Elapsed time: 0.20 microseconds +Elapsed time: 0.29 ms +Elapsed time: 0.19 ms +Elapsed time: 0.20 ms ECDSA_SECP384R1_SHA384 -Elapsed time: 0.29 microseconds -Elapsed time: 0.72 microseconds -Elapsed time: 0.77 microseconds +Elapsed time: 0.29 ms +Elapsed time: 0.72 ms +Elapsed time: 0.77 ms -Elapsed time: 0.20 microseconds -Elapsed time: 0.72 microseconds -Elapsed time: 0.84 microseconds +Elapsed time: 0.20 ms +Elapsed time: 0.72 ms +Elapsed time: 0.84 ms -Elapsed time: 0.20 microseconds -Elapsed time: 0.72 microseconds -Elapsed time: 0.75 microseconds +Elapsed time: 0.20 ms +Elapsed time: 0.72 ms +Elapsed time: 0.75 ms dilithium2 -Elapsed time: 0.12 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.07 microseconds +Elapsed time: 0.12 ms +Elapsed time: 0.73 ms +Elapsed time: 0.07 ms -Elapsed time: 0.08 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.08 microseconds +Elapsed time: 0.08 ms +Elapsed time: 0.73 ms +Elapsed time: 0.08 ms -Elapsed time: 0.08 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.07 microseconds +Elapsed time: 0.08 ms +Elapsed time: 0.73 ms +Elapsed time: 0.07 ms Dilithium2 -Elapsed time: 0.13 microseconds -Elapsed time: 0.72 microseconds -Elapsed time: 0.11 microseconds +Elapsed time: 0.13 ms +Elapsed time: 0.72 ms +Elapsed time: 0.11 ms -Elapsed time: 0.12 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.11 microseconds +Elapsed time: 0.12 ms +Elapsed time: 0.73 ms +Elapsed time: 0.11 ms -Elapsed time: 0.13 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.11 microseconds +Elapsed time: 0.13 ms +Elapsed time: 0.73 ms +Elapsed time: 0.11 ms Dilithium5 -Elapsed time: 0.21 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.28 microseconds +Elapsed time: 0.21 ms +Elapsed time: 0.73 ms +Elapsed time: 0.28 ms -Elapsed time: 0.20 microseconds -Elapsed time: 0.75 microseconds -Elapsed time: 0.19 microseconds +Elapsed time: 0.20 ms +Elapsed time: 0.75 ms +Elapsed time: 0.19 ms -Elapsed time: 0.20 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.19 microseconds +Elapsed time: 0.20 ms +Elapsed time: 0.74 ms +Elapsed time: 0.19 ms falcon1024 -Elapsed time: 0.10 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.06 microseconds +Elapsed time: 0.10 ms +Elapsed time: 0.74 ms +Elapsed time: 0.06 ms -Elapsed time: 0.08 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.06 microseconds +Elapsed time: 0.08 ms +Elapsed time: 0.74 ms +Elapsed time: 0.06 ms -Elapsed time: 0.08 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.06 microseconds +Elapsed time: 0.08 ms +Elapsed time: 0.74 ms +Elapsed time: 0.06 ms falcon512 -Elapsed time: 0.07 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.03 microseconds +Elapsed time: 0.07 ms +Elapsed time: 0.73 ms +Elapsed time: 0.03 ms -Elapsed time: 0.05 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.03 microseconds +Elapsed time: 0.05 ms +Elapsed time: 0.74 ms +Elapsed time: 0.03 ms -Elapsed time: 0.05 microseconds -Elapsed time: 0.75 microseconds -Elapsed time: 0.03 microseconds +Elapsed time: 0.05 ms +Elapsed time: 0.75 ms +Elapsed time: 0.03 ms mldsa44 -Elapsed time: 0.10 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.11 microseconds +Elapsed time: 0.10 ms +Elapsed time: 0.73 ms +Elapsed time: 0.11 ms -Elapsed time: 0.08 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.07 microseconds +Elapsed time: 0.08 ms +Elapsed time: 0.74 ms +Elapsed time: 0.07 ms -Elapsed time: 0.09 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.08 microseconds +Elapsed time: 0.09 ms +Elapsed time: 0.74 ms +Elapsed time: 0.08 ms mldsa65 -Elapsed time: 0.14 microseconds -Elapsed time: 0.75 microseconds -Elapsed time: 0.11 microseconds +Elapsed time: 0.14 ms +Elapsed time: 0.75 ms +Elapsed time: 0.11 ms -Elapsed time: 0.13 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.11 microseconds +Elapsed time: 0.13 ms +Elapsed time: 0.74 ms +Elapsed time: 0.11 ms -Elapsed time: 0.13 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.17 microseconds +Elapsed time: 0.13 ms +Elapsed time: 0.74 ms +Elapsed time: 0.17 ms mldsa87 -Elapsed time: 0.20 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.18 microseconds +Elapsed time: 0.20 ms +Elapsed time: 0.73 ms +Elapsed time: 0.18 ms -Elapsed time: 0.19 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.27 microseconds +Elapsed time: 0.19 ms +Elapsed time: 0.74 ms +Elapsed time: 0.27 ms -Elapsed time: 0.19 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.23 microseconds +Elapsed time: 0.19 ms +Elapsed time: 0.74 ms +Elapsed time: 0.23 ms sphincssha2128fsimple -Elapsed time: 1.49 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 1.42 microseconds +Elapsed time: 1.49 ms +Elapsed time: 0.73 ms +Elapsed time: 1.42 ms -Elapsed time: 1.48 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 1.39 microseconds +Elapsed time: 1.48 ms +Elapsed time: 0.73 ms +Elapsed time: 1.39 ms -Elapsed time: 1.49 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 1.39 microseconds +Elapsed time: 1.49 ms +Elapsed time: 0.74 ms +Elapsed time: 1.39 ms sphincssha2128ssimple -Elapsed time: 0.53 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 0.54 microseconds +Elapsed time: 0.53 ms +Elapsed time: 0.74 ms +Elapsed time: 0.54 ms -Elapsed time: 0.67 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.52 microseconds +Elapsed time: 0.67 ms +Elapsed time: 0.73 ms +Elapsed time: 0.52 ms -Elapsed time: 0.58 microseconds -Elapsed time: 0.73 microseconds -Elapsed time: 0.70 microseconds +Elapsed time: 0.58 ms +Elapsed time: 0.73 ms +Elapsed time: 0.70 ms sphincsshake128fsimple -Elapsed time: 2.24 microseconds -Elapsed time: 0.72 microseconds -Elapsed time: 2.24 microseconds +Elapsed time: 2.24 ms +Elapsed time: 0.72 ms +Elapsed time: 2.24 ms -Elapsed time: 2.23 microseconds -Elapsed time: 0.74 microseconds -Elapsed time: 2.26 microseconds +Elapsed time: 2.23 ms +Elapsed time: 0.74 ms +Elapsed time: 2.26 ms -Elapsed time: 2.23 microseconds -Elapsed time: 0.72 microseconds -Elapsed time: 2.43 microseconds +Elapsed time: 2.23 ms +Elapsed time: 0.72 ms +Elapsed time: 2.43 ms -------------------------------------------------------------------------------- TEST #2 @@ -187,175 +187,175 @@ liboqs 0.10.0 18.04.2024 ECDSA_SECP256R1_SHA256 -Elapsed time: 0.53 microseconds -Elapsed time: 0.43 microseconds -Elapsed time: 0.97 microseconds +Elapsed time: 0.53 ms +Elapsed time: 0.43 ms +Elapsed time: 0.97 ms -Elapsed time: 0.71 microseconds -Elapsed time: 0.51 microseconds -Elapsed time: 0.91 microseconds +Elapsed time: 0.71 ms +Elapsed time: 0.51 ms +Elapsed time: 0.91 ms -Elapsed time: 0.42 microseconds -Elapsed time: 0.59 microseconds -Elapsed time: 0.75 microseconds +Elapsed time: 0.42 ms +Elapsed time: 0.59 ms +Elapsed time: 0.75 ms RSA_PSS_RSAE_SHA256 -Elapsed time: 0.42 microseconds -Elapsed time: 0.38 microseconds -Elapsed time: 0.42 microseconds +Elapsed time: 0.42 ms +Elapsed time: 0.38 ms +Elapsed time: 0.42 ms -Elapsed time: 1.04 microseconds -Elapsed time: 0.50 microseconds -Elapsed time: 0.41 microseconds +Elapsed time: 1.04 ms +Elapsed time: 0.50 ms +Elapsed time: 0.41 ms -Elapsed time: 0.59 microseconds -Elapsed time: 0.50 microseconds -Elapsed time: 0.50 microseconds +Elapsed time: 0.59 ms +Elapsed time: 0.50 ms +Elapsed time: 0.50 ms DILITHIUM2 -Elapsed time: 0.42 microseconds -Elapsed time: 1.41 microseconds -Elapsed time: 0.18 microseconds +Elapsed time: 0.42 ms +Elapsed time: 1.41 ms +Elapsed time: 0.18 ms -Elapsed time: 0.45 microseconds -Elapsed time: 1.40 microseconds -Elapsed time: 0.21 microseconds +Elapsed time: 0.45 ms +Elapsed time: 1.40 ms +Elapsed time: 0.21 ms -Elapsed time: 0.45 microseconds -Elapsed time: 1.44 microseconds -Elapsed time: 0.81 microseconds +Elapsed time: 0.45 ms +Elapsed time: 1.44 ms +Elapsed time: 0.81 ms DILITHIUM3 -Elapsed time: 0.68 microseconds -Elapsed time: 1.49 microseconds -Elapsed time: 0.33 microseconds +Elapsed time: 0.68 ms +Elapsed time: 1.49 ms +Elapsed time: 0.33 ms -Elapsed time: 0.68 microseconds -Elapsed time: 1.40 microseconds -Elapsed time: 0.33 microseconds +Elapsed time: 0.68 ms +Elapsed time: 1.40 ms +Elapsed time: 0.33 ms -Elapsed time: 0.68 microseconds -Elapsed time: 1.40 microseconds -Elapsed time: 0.35 microseconds +Elapsed time: 0.68 ms +Elapsed time: 1.40 ms +Elapsed time: 0.35 ms DILITHIUM5 -Elapsed time: 1.12 microseconds -Elapsed time: 1.40 microseconds -Elapsed time: 0.40 microseconds +Elapsed time: 1.12 ms +Elapsed time: 1.40 ms +Elapsed time: 0.40 ms -Elapsed time: 1.02 microseconds -Elapsed time: 2.36 microseconds -Elapsed time: 0.62 microseconds +Elapsed time: 1.02 ms +Elapsed time: 2.36 ms +Elapsed time: 0.62 ms -Elapsed time: 1.07 microseconds -Elapsed time: 1.40 microseconds -Elapsed time: 0.52 microseconds +Elapsed time: 1.07 ms +Elapsed time: 1.40 ms +Elapsed time: 0.52 ms FALCON1024 -Elapsed time: 0.59 microseconds -Elapsed time: 3.83 microseconds -Elapsed time: 0.35 microseconds +Elapsed time: 0.59 ms +Elapsed time: 3.83 ms +Elapsed time: 0.35 ms -Elapsed time: 0.18 microseconds -Elapsed time: 1.51 microseconds -Elapsed time: 0.15 microseconds +Elapsed time: 0.18 ms +Elapsed time: 1.51 ms +Elapsed time: 0.15 ms -Elapsed time: 0.28 microseconds -Elapsed time: 1.91 microseconds -Elapsed time: 0.19 microseconds +Elapsed time: 0.28 ms +Elapsed time: 1.91 ms +Elapsed time: 0.19 ms FALCON512 -Elapsed time: 0.47 microseconds -Elapsed time: 4.07 microseconds -Elapsed time: 0.20 microseconds +Elapsed time: 0.47 ms +Elapsed time: 4.07 ms +Elapsed time: 0.20 ms -Elapsed time: 0.28 microseconds -Elapsed time: 1.41 microseconds -Elapsed time: 0.08 microseconds +Elapsed time: 0.28 ms +Elapsed time: 1.41 ms +Elapsed time: 0.08 ms -Elapsed time: 0.29 microseconds -Elapsed time: 3.69 microseconds -Elapsed time: 0.26 microseconds +Elapsed time: 0.29 ms +Elapsed time: 3.69 ms +Elapsed time: 0.26 ms MLDSA44 -Elapsed time: 0.55 microseconds -Elapsed time: 3.73 microseconds -Elapsed time: 0.27 microseconds +Elapsed time: 0.55 ms +Elapsed time: 3.73 ms +Elapsed time: 0.27 ms -Elapsed time: 0.46 microseconds -Elapsed time: 3.07 microseconds -Elapsed time: 0.21 microseconds +Elapsed time: 0.46 ms +Elapsed time: 3.07 ms +Elapsed time: 0.21 ms -Elapsed time: 0.23 microseconds -Elapsed time: 1.92 microseconds -Elapsed time: 0.25 microseconds +Elapsed time: 0.23 ms +Elapsed time: 1.92 ms +Elapsed time: 0.25 ms MLDSA65 -Elapsed time: 0.74 microseconds -Elapsed time: 1.48 microseconds -Elapsed time: 0.24 microseconds +Elapsed time: 0.74 ms +Elapsed time: 1.48 ms +Elapsed time: 0.24 ms -Elapsed time: 0.67 microseconds -Elapsed time: 2.50 microseconds -Elapsed time: 0.37 microseconds +Elapsed time: 0.67 ms +Elapsed time: 2.50 ms +Elapsed time: 0.37 ms -Elapsed time: 0.68 microseconds -Elapsed time: 1.42 microseconds -Elapsed time: 0.61 microseconds +Elapsed time: 0.68 ms +Elapsed time: 1.42 ms +Elapsed time: 0.61 ms MLDSA87 -Elapsed time: 1.09 microseconds -Elapsed time: 1.42 microseconds -Elapsed time: 0.38 microseconds +Elapsed time: 1.09 ms +Elapsed time: 1.42 ms +Elapsed time: 0.38 ms -Elapsed time: 1.05 microseconds -Elapsed time: 1.50 microseconds -Elapsed time: 0.39 microseconds +Elapsed time: 1.05 ms +Elapsed time: 1.50 ms +Elapsed time: 0.39 ms -Elapsed time: 1.04 microseconds -Elapsed time: 1.42 microseconds -Elapsed time: 0.41 microseconds +Elapsed time: 1.04 ms +Elapsed time: 1.42 ms +Elapsed time: 0.41 ms SPHINCS_SHA2_128F_SIMPLE -Elapsed time: 7.59 microseconds -Elapsed time: 2.27 microseconds -Elapsed time: 4.51 microseconds +Elapsed time: 7.59 ms +Elapsed time: 2.27 ms +Elapsed time: 4.51 ms -Elapsed time: 7.71 microseconds -Elapsed time: 1.40 microseconds -Elapsed time: 2.74 microseconds +Elapsed time: 7.71 ms +Elapsed time: 1.40 ms +Elapsed time: 2.74 ms -Elapsed time: 8.73 microseconds -Elapsed time: 2.24 microseconds -Elapsed time: 4.54 microseconds +Elapsed time: 8.73 ms +Elapsed time: 2.24 ms +Elapsed time: 4.54 ms SPHINCS_SHA2_128S_SIMPLE -Elapsed time: 2.58 microseconds -Elapsed time: 1.44 microseconds -Elapsed time: 0.97 microseconds +Elapsed time: 2.58 ms +Elapsed time: 1.44 ms +Elapsed time: 0.97 ms -Elapsed time: 2.45 microseconds -Elapsed time: 4.38 microseconds -Elapsed time: 3.43 microseconds +Elapsed time: 2.45 ms +Elapsed time: 4.38 ms +Elapsed time: 3.43 ms -Elapsed time: 2.48 microseconds -Elapsed time: 2.30 microseconds -Elapsed time: 2.39 microseconds +Elapsed time: 2.48 ms +Elapsed time: 2.30 ms +Elapsed time: 2.39 ms SPHINCS_SHAKE_128F_SIMPLE -Elapsed time: 10.59 microseconds -Elapsed time: 1.46 microseconds -Elapsed time: 4.11 microseconds +Elapsed time: 10.59 ms +Elapsed time: 1.46 ms +Elapsed time: 4.11 ms -Elapsed time: 10.41 microseconds -Elapsed time: 2.39 microseconds -Elapsed time: 6.33 microseconds +Elapsed time: 10.41 ms +Elapsed time: 2.39 ms +Elapsed time: 6.33 ms -Elapsed time: 10.92 microseconds -Elapsed time: 2.46 microseconds -Elapsed time: 6.58 microseconds +Elapsed time: 10.92 ms +Elapsed time: 2.46 ms +Elapsed time: 6.58 ms