Fix UBsan finding on PowerPC under Clang 7.0
parent
568d9376a2
commit
f6de172367
1
sm4.cpp
1
sm4.cpp
|
|
@ -17,6 +17,7 @@ using CryptoPP::byte;
|
||||||
using CryptoPP::word32;
|
using CryptoPP::word32;
|
||||||
using CryptoPP::rotlConstant;
|
using CryptoPP::rotlConstant;
|
||||||
|
|
||||||
|
CRYPTOPP_ALIGN_DATA(4)
|
||||||
const byte S[256] =
|
const byte S[256] =
|
||||||
{
|
{
|
||||||
0xD6, 0x90, 0xE9, 0xFE, 0xCC, 0xE1, 0x3D, 0xB7, 0x16, 0xB6, 0x14, 0xC2, 0x28, 0xFB, 0x2C, 0x05,
|
0xD6, 0x90, 0xE9, 0xFE, 0xCC, 0xE1, 0x3D, 0xB7, 0x16, 0xB6, 0x14, 0xC2, 0x28, 0xFB, 0x2C, 0x05,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue