Load correct value fo 1 under ARM big endian

pull/507/head
Jeffrey Walton 2017-09-13 21:42:15 -04:00
parent c22507e38b
commit 8e52ce6dd2
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 7 additions and 0 deletions

View File

@ -158,6 +158,13 @@ bool CPU_ProbeAES()
// ***************************** ARMv8 ***************************** //
#if (CRYPTOPP_ARM_AES_AVAILABLE)
#if defined(IS_LITTLE_ENDIAN)
const word32 s_one[] = {0, 0, 0, 1<<24};
#else
const word32 s_one[] = {1, 0, 0, 0};
#endif
inline void ARMV8_Enc_Block(uint8x16_t &block, const word32 *subkeys, unsigned int rounds)
{
CRYPTOPP_ASSERT(subkeys);