openssl/crypto/modes
David Benjamin 40c24d74de Don't use __ARMEL__/__ARMEB__ in aarch64 assembly
GCC's __ARMEL__ and __ARMEB__ defines denote little- and big-endian arm,
respectively. They are not defined on aarch64, which instead use
__AARCH64EL__ and __AARCH64EB__.

However, OpenSSL's assembly originally used the 32-bit defines on both
platforms and even define __ARMEL__ and __ARMEB__ in arm_arch.h. This is
less portable and can even interfere with other headers, which use
__ARMEL__ to detect little-endian arm.

Over time, the aarch64 assembly has switched to the correct defines,
such as in 32bbb62ea6. This commit
finishes the job: poly1305-armv8.pl needed a fix and the dual-arch
armx.pl files get one more transform to convert from 32-bit to 64-bit.

(There is an even more official endianness detector, __ARM_BIG_ENDIAN in
the Arm C Language Extensions. But I've stuck with the GCC ones here as
that would be a larger change.)

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/17373)
2022-01-09 07:40:44 +01:00
..
asm Don't use __ARMEL__/__ARMEB__ in aarch64 assembly 2022-01-09 07:40:44 +01:00
build.info Drop libimplementations.a 2021-05-07 10:17:23 +02:00
cbc128.c Update copyright year 2021-04-08 13:04:41 +01:00
ccm128.c Update copyright year 2020-06-04 14:33:57 +01:00
cfb128.c Update copyright year 2021-04-08 13:04:41 +01:00
ctr128.c Update copyright year 2021-04-08 13:04:41 +01:00
cts128.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
gcm128.c Split bignum code out of the sparcv9cap.c 2021-07-15 09:33:04 +02:00
ocb128.c Update copyright year 2020-11-26 14:18:57 +00:00
ofb128.c Update copyright year 2021-04-08 13:04:41 +01:00
siv128.c Rename all getters to use get/get0 in name 2021-06-01 12:40:00 +02:00
wrap128.c Following the license change, modify the boilerplates in crypto/modes/ 2018-12-06 15:06:37 +01:00
xts128.c Add and use internal header that implements endianness check 2020-07-11 10:00:33 +02:00