Fix endianess for s_one on ARM big-endian
parent
8e52ce6dd2
commit
63a0af4efa
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue