[openssl/openssl] fd54fa: Update CMAC cipher algorithm list and test cases.
Fisher Yu
noreply at github.com
Thu Jun 8 23:10:20 UTC 2023
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: fd54fadba6bc138fb35a82c033c540f7e97322c8
https://github.com/openssl/openssl/commit/fd54fadba6bc138fb35a82c033c540f7e97322c8
Author: fisher.yu <fisher.yu at arm.com>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M doc/man1/openssl-mac.pod.in
M test/cmactest.c
Log Message:
-----------
Update CMAC cipher algorithm list and test cases.
1. Update manual, add SM4-CBC to CMAC cipher algorithm list.
2. Add test case for SM4-CBC CMAC, add "data length is greater
than 4 block-length" cases for aes-128-cbc, aes-192-cbc,
aes-256-cbc and des-ede3-cbc.
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21102)
Commit: dc19f2f6223db0578be826d03ba8012cca076d28
https://github.com/openssl/openssl/commit/dc19f2f6223db0578be826d03ba8012cca076d28
Author: fisher.yu <fisher.yu at arm.com>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M crypto/cmac/cmac.c
Log Message:
-----------
Optimize CMAC_Update for better performance.
Reduce the number of EVP_Cipher function calls in CMAC_Update,
to improve performance of CMAC.
Below are command and result of performance improvement.
COMMAND: openssl speed -cmac ALGORITHM
IMPROVEMENT(%):
A72 stands for Cortex A72
N1 stands for Neoverse N1
N2 stands for Neoverse N2
A72 N1 N2 x86
aes-128-cbc at 256 65.4 54.6 37.9 86.6
aes-128-cbc at 1024 156.0 105.6 65.8 197.1
aes-128-cbc at 8192 237.7 139.2 80.5 285.8
aes-128-cbc at 16384 249.1 143.5 82.2 294.1
aes-192-cbc at 256 65.6 46.5 30.9 77.8
aes-192-cbc at 1024 154.2 87.5 50.8 167.4
aes-192-cbc at 8192 226.5 117.0 60.5 231.7
aes-192-cbc at 16384 236.3 120.1 61.7 238.4
aes-256-cbc at 256 66.0 40.3 22.2 69.5
aes-256-cbc at 1024 136.8 74.6 35.7 142.2
aes-256-cbc at 8192 189.7 93.5 41.5 191.7
aes-256-cbc at 16384 196.6 95.8 42.2 195.9
des-ede3-cbc at 64 6.9 4.4 2.9 7.2
des-ede3-cbc at 256 9.3 6.1 4.3 13.1
des-ede3-cbc at 1024 10.0 6.4 4.8 14.9
des-ede3-cbc at 8192 10.3 6.5 5.1 15.5
des-ede3-cbc at 16384 10.3 6.4 5.1 15.5
sm4-cbc at 256 9.5 3.0 - 18.0
sm4-cbc at 1024 12.3 3.6 - 24.6
sm4-cbc at 8192 13.2 3.8 - 27.0
sm4-cbc at 16384 13.5 3.8 - 27.2
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21102)
Compare: https://github.com/openssl/openssl/compare/247f307f7201...dc19f2f6223d
More information about the openssl-commits
mailing list