Fix endianess for s_one on ARM big-endian

pull/507/head
Jeffrey Walton 2017-09-13 22:52:29 -04:00
parent 8e52ce6dd2
commit 63a0af4efa
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

View File

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