Other Parts Discussed in Thread: AES-128
We are carrying out sa2ul performance test through TI TDA4 / XJ721E SOC HS equipment, we refer to your test method, input:
insmod tcrypt.ko mode=500 sec=1 &
the result is shown below.
[ 1332.532988] testing speed of async cbc(aes) (cbc-aes-sa2ul) encryption
[ 1332.541674] tcrypt: test 0 (128 bit key, 16 byte blocks): 75656 operations in 1 seconds (1210496 bytes)
[ 1333.548523] tcrypt: test 1 (128 bit key, 64 byte blocks): 77942 operations in 1 seconds (4988288 bytes)
[ 1334.556530] tcrypt: test 2 (128 bit key, 256 byte blocks): 502658 operations in 1 seconds (128680448 bytes)
[ 1335.564864] tcrypt: test 3 (128 bit key, 1024 byte blocks): 56926 operations in 1 seconds (58292224 bytes)
[ 1336.572784] tcrypt: test 4 (128 bit key, 1472 byte blocks): 49726 operations in 1 seconds (73196672 bytes)
[ 1337.580790] tcrypt: test 5 (128 bit key, 8192 byte blocks): 22413 operations in 1 seconds (183607296 bytes)
[ 1338.588903] tcrypt: test 6 (192 bit key, 16 byte blocks): 72694 operations in 1 seconds (1163104 bytes)
[ 1339.596522] tcrypt: test 7 (192 bit key, 64 byte blocks): 74998 operations in 1 seconds (4799872 bytes)
[ 1340.604534] tcrypt: test 8 (192 bit key, 256 byte blocks): 475872 operations in 1 seconds (121823232 bytes)
[ 1341.612866] tcrypt: test 9 (192 bit key, 1024 byte blocks): 57911 operations in 1 seconds (59300864 bytes)
[ 1342.620802] tcrypt: test 10 (192 bit key, 1472 byte blocks): 47996 operations in 1 seconds (70650112 bytes)
[ 1343.628871] tcrypt: test 11 (192 bit key, 8192 byte blocks): 19848 operations in 1 seconds (162594816 bytes)
[ 1344.636982] tcrypt: test 12 (256 bit key, 16 byte blocks): 80624 operations in 1 seconds (1289984 bytes)
[ 1345.644622] tcrypt: test 13 (256 bit key, 64 byte blocks): 77801 operations in 1 seconds (4979264 bytes)
[ 1346.652612] tcrypt: test 14 (256 bit key, 256 byte blocks): 472843 operations in 1 seconds (121047808 bytes)
[ 1347.660950] tcrypt: test 15 (256 bit key, 1024 byte blocks): 55751 operations in 1 seconds (57089024 bytes)
[ 1348.668876] tcrypt: test 16 (256 bit key, 1472 byte blocks): 52313 operations in 1 seconds (77004736 bytes)
[ 1349.676878] tcrypt: test 17 (256 bit key, 8192 byte blocks): 20365 operations in 1 seconds (166830080 bytes)
It can be seen that the encryption speed of aes-cbc-128 increases as the block size increases. However, when the block size reaches 256 bytes, the encryption speed is the fastest, even reaching 100MB+/s. Is there any error in tcrypt?
In addition, whether the performance of sa2ul aes can be tested by the command:
openssl speed -elapsed -evp aes-128-cbc