fix bug on 32-bit big-endian machines
parent
0f71ab3311
commit
93fa6bc9e4
16
vmac.cpp
16
vmac.cpp
|
|
@ -512,15 +512,15 @@ void VMAC_Base::VHASH_Update_Template(const word64 *data, size_t blocksRemaining
|
||||||
nh2[1] = (nhB2 + (nhB1 >> 32)) & m62;
|
nh2[1] = (nhB2 + (nhB1 >> 32)) & m62;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define a0 (((word32 *)(polyS+i*4))[2])
|
#define a0 (((word32 *)(polyS+i*4))[2+NativeByteOrder::ToEnum()])
|
||||||
#define a1 (((word32 *)(polyS+i*4))[3])
|
#define a1 (((word32 *)(polyS+i*4))[3-NativeByteOrder::ToEnum()])
|
||||||
#define a2 (((word32 *)(polyS+i*4))[0])
|
#define a2 (((word32 *)(polyS+i*4))[0+NativeByteOrder::ToEnum()])
|
||||||
#define a3 (((word32 *)(polyS+i*4))[1])
|
#define a3 (((word32 *)(polyS+i*4))[1-NativeByteOrder::ToEnum()])
|
||||||
#define aHi ((polyS+i*4)[0])
|
#define aHi ((polyS+i*4)[0])
|
||||||
#define k0 (((word32 *)(polyS+i*4+2))[2])
|
#define k0 (((word32 *)(polyS+i*4+2))[2+NativeByteOrder::ToEnum()])
|
||||||
#define k1 (((word32 *)(polyS+i*4+2))[3])
|
#define k1 (((word32 *)(polyS+i*4+2))[3-NativeByteOrder::ToEnum()])
|
||||||
#define k2 (((word32 *)(polyS+i*4+2))[0])
|
#define k2 (((word32 *)(polyS+i*4+2))[0+NativeByteOrder::ToEnum()])
|
||||||
#define k3 (((word32 *)(polyS+i*4+2))[1])
|
#define k3 (((word32 *)(polyS+i*4+2))[1-NativeByteOrder::ToEnum()])
|
||||||
#define kHi ((polyS+i*4+2)[0])
|
#define kHi ((polyS+i*4+2)[0])
|
||||||
|
|
||||||
if (isFirstBlock)
|
if (isFirstBlock)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue