sha/asm/sha512-armv8.pl: fix big-endian support in __KERNEL__ case.
authorAndy Polyakov <appro@openssl.org>
Sun, 13 Nov 2016 21:32:09 +0000 (22:32 +0100)
committerAndy Polyakov <appro@openssl.org>
Thu, 17 Nov 2016 18:29:58 +0000 (19:29 +0100)
commit32bbb62ea634239e7cb91d6450ba23517082bab6
treee08671f8b3639306d602568036c057cb32e15222
parent657a43f6629cf5296a55731af5fd80f6602679cf
sha/asm/sha512-armv8.pl: fix big-endian support in __KERNEL__ case.

In non-__KERNEL__ context 32-bit-style __ARMEB__/__ARMEL__ macros were
set in arm_arch.h, which is shared between 32- and 64-bit builds. Since
it's not included in __KERNEL__ case, we have to adhere to official
64-bit pre-defines, __AARCH64EB__/__AARCH64EL__.

[If we are to share more code, it would need similar adjustment.]

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/sha/asm/sha512-armv8.pl