Hi,
We are working on the Hardware crypto accelerator and using the cryptodev-linux.
using the test application https://github.com/cryptodev-linux/cryptodev-linux/blob/master/tests/speed.c we are checking the performance of AES-modes. log as below
Testing AES-128-CBC cipher:
Encrypting in chunks of 512 bytes: done. 110.86 MB in 5.00 secs: 22.17 MB/sec
Encrypting in chunks of 1024 bytes: done. 122.52 MB in 5.00 secs: 24.50 MB/sec
Encrypting in chunks of 2048 bytes: done. 127.34 MB in 5.00 secs: 25.47 MB/sec
Encrypting in chunks of 4096 bytes: done. 132.09 MB in 5.00 secs: 26.42 MB/sec
Encrypting in chunks of 8192 bytes: done. 127.64 MB in 5.00 secs: 25.53 MB/sec
Encrypting in chunks of 16384 bytes: done. 119.34 MB in 5.00 secs: 23.86 MB/sec
Encrypting in chunks of 32768 bytes: done. 105.48 MB in 5.00 secs: 21.09 MB/sec
Encrypting in chunks of 65536 bytes: done. 85.98 MB in 5.00 secs: 17.19 MB/sec
we are checking the performance with the OepnSSL as well and observing as below.
$./openssl speed -evp aes-128-cbc -engine devcrypto
Engine "devcrypto" set.
Doing AES-128-CBC for 3s on 16 size blocks: 517398 AES-128-CBC's in 0.10s
Doing AES-128-CBC for 3s on 64 size blocks: 412163 AES-128-CBC's in 0.08s
Doing AES-128-CBC for 3s on 256 size blocks: 207881 AES-128-CBC's in 0.06s
Doing AES-128-CBC for 3s on 1024 size blocks: 70025 AES-128-CBC's in 0.02s
Doing AES-128-CBC for 3s on 8192 size blocks: 8751 AES-128-CBC's in 0.01s
Doing AES-128-CBC for 3s on 16384 size blocks: 4117 AES-128-CBC's in 0.00s
version: 3.1.3
built on: Tue Nov 28 09:14:20 2023 UTC
options: bn(64,64)
compiler: riscv64-unknown-linux-gnu-gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG
CPUINFO: N/A
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
AES-128-CBC 82783.68k 329730.40k 886958.93k 3585280.00k 7168819.20k infk
we are seeing the data processed in the OpenSSL is much higher then compared to the cryptodev-linux test application.
can you please let me know what could be the reason for this lower data processed.
Thanks,
Ashoka A D
Hi,
We are working on the Hardware crypto accelerator and using the cryptodev-linux.
using the test application https://github.com/cryptodev-linux/cryptodev-linux/blob/master/tests/speed.c we are checking the performance of AES-modes. log as below
we are checking the performance with the OepnSSL as well and observing as below.
we are seeing the data processed in the OpenSSL is much higher then compared to the cryptodev-linux test application.
can you please let me know what could be the reason for this lower data processed.
Thanks,
Ashoka A D