Fix reported performance degradation on aarch64
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 12 Jun 2022 07:37:26 +0000 (09:37 +0200)
committerHugo Landau <hlandau@openssl.org>
Wed, 6 Jul 2022 07:11:03 +0000 (08:11 +0100)
commita8f6d73fda64d514171e99a50d1483c0c0b8d968
treeb808341a1007e6cde385d31e2151f51a5f5ecdf9
parent60f011f584d80447e86cae1d1bd3ae24bc13235b
Fix reported performance degradation on aarch64

This restores the implementation prior to
commit 2621751 ("aes/asm/aesv8-armx.pl: avoid 32-bit lane assignment in CTR mode")
for 64bit targets only, since it is reportedly 2-17% slower,
and the silicon errata only affects 32bit targets.
Only for 32bit targets the new algorithm is used.

Fixes #18445

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18539)
crypto/aes/asm/aesv8-armx.pl