Change KB to kB
Change KB to kB, as this is the proper way to write kilo bytes
This commit is contained in:
parent
46cf773f2f
commit
a0748019f1
3 changed files with 20 additions and 20 deletions
|
@ -126,7 +126,7 @@ do { \
|
|||
CODE; \
|
||||
} \
|
||||
\
|
||||
mbedtls_printf( "%9lu KB/s, %9lu cycles/byte\n", \
|
||||
mbedtls_printf( "%9lu kB/s, %9lu cycles/byte\n", \
|
||||
ii * BUFSIZE / 1024, \
|
||||
( mbedtls_timing_hardclock() - tsc ) / ( jj * BUFSIZE ) ); \
|
||||
} while( 0 )
|
||||
|
|
|
@ -56,24 +56,24 @@ To build and run this example you must have:
|
|||
{{start}}
|
||||
|
||||
|
||||
SHA-1 : 3644 KB/s, 32 cycles/byte
|
||||
SHA-256 : 1957 KB/s, 59 cycles/byte
|
||||
SHA-512 : 587 KB/s, 200 cycles/byte
|
||||
AES-CBC-128 : 1359 KB/s, 86 cycles/byte
|
||||
AES-CBC-192 : 1183 KB/s, 99 cycles/byte
|
||||
AES-CBC-256 : 1048 KB/s, 111 cycles/byte
|
||||
AES-GCM-128 : 421 KB/s, 279 cycles/byte
|
||||
AES-GCM-192 : 403 KB/s, 292 cycles/byte
|
||||
AES-GCM-256 : 385 KB/s, 305 cycles/byte
|
||||
AES-CCM-128 : 542 KB/s, 216 cycles/byte
|
||||
AES-CCM-192 : 484 KB/s, 242 cycles/byte
|
||||
AES-CCM-256 : 437 KB/s, 268 cycles/byte
|
||||
CTR_DRBG (NOPR) : 1002 KB/s, 117 cycles/byte
|
||||
CTR_DRBG (PR) : 705 KB/s, 166 cycles/byte
|
||||
HMAC_DRBG SHA-1 (NOPR) : 228 KB/s, 517 cycles/byte
|
||||
HMAC_DRBG SHA-1 (PR) : 210 KB/s, 561 cycles/byte
|
||||
HMAC_DRBG SHA-256 (NOPR) : 212 KB/s, 557 cycles/byte
|
||||
HMAC_DRBG SHA-256 (PR) : 185 KB/s, 637 cycles/byte
|
||||
SHA-1 : 3644 kB/s, 32 cycles/byte
|
||||
SHA-256 : 1957 kB/s, 59 cycles/byte
|
||||
SHA-512 : 587 kB/s, 200 cycles/byte
|
||||
AES-CBC-128 : 1359 kB/s, 86 cycles/byte
|
||||
AES-CBC-192 : 1183 kB/s, 99 cycles/byte
|
||||
AES-CBC-256 : 1048 kB/s, 111 cycles/byte
|
||||
AES-GCM-128 : 421 kB/s, 279 cycles/byte
|
||||
AES-GCM-192 : 403 kB/s, 292 cycles/byte
|
||||
AES-GCM-256 : 385 kB/s, 305 cycles/byte
|
||||
AES-CCM-128 : 542 kB/s, 216 cycles/byte
|
||||
AES-CCM-192 : 484 kB/s, 242 cycles/byte
|
||||
AES-CCM-256 : 437 kB/s, 268 cycles/byte
|
||||
CTR_DRBG (NOPR) : 1002 kB/s, 117 cycles/byte
|
||||
CTR_DRBG (PR) : 705 kB/s, 166 cycles/byte
|
||||
HMAC_DRBG SHA-1 (NOPR) : 228 kB/s, 517 cycles/byte
|
||||
HMAC_DRBG SHA-1 (PR) : 210 kB/s, 561 cycles/byte
|
||||
HMAC_DRBG SHA-256 (NOPR) : 212 kB/s, 557 cycles/byte
|
||||
HMAC_DRBG SHA-256 (PR) : 185 kB/s, 637 cycles/byte
|
||||
RSA-2048 : 41 ms/ public
|
||||
RSA-2048 : 1349 ms/private
|
||||
RSA-4096 : 134 ms/ public
|
||||
|
|
|
@ -229,7 +229,7 @@ do { \
|
|||
CODE; \
|
||||
} \
|
||||
\
|
||||
mbedtls_printf( "%9lu KB/s, %9lu cycles/byte\r\n", \
|
||||
mbedtls_printf( "%9lu kB/s, %9lu cycles/byte\r\n", \
|
||||
i * BUFSIZE / 1024, \
|
||||
( mbedtls_timing_hardclock() - tsc ) / ( j * BUFSIZE ) ); \
|
||||
} while( 0 )
|
||||
|
|
Loading…
Reference in a new issue