aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/camellia/camellia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/camellia/camellia.cpp')
-rw-r--r--src/lib/block/camellia/camellia.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/block/camellia/camellia.cpp b/src/lib/block/camellia/camellia.cpp
index 295b008a4..8741e5475 100644
--- a/src/lib/block/camellia/camellia.cpp
+++ b/src/lib/block/camellia/camellia.cpp
@@ -15,8 +15,7 @@ namespace {
namespace Camellia_F {
-alignas(64)
-static const uint8_t SBOX1[256] = {
+alignas(256) static const uint8_t SBOX1[256] = {
0x70, 0x82, 0x2C, 0xEC, 0xB3, 0x27, 0xC0, 0xE5, 0xE4, 0x85, 0x57,
0x35, 0xEA, 0x0C, 0xAE, 0x41, 0x23, 0xEF, 0x6B, 0x93, 0x45, 0x19,
0xA5, 0x21, 0xED, 0x0E, 0x4F, 0x4E, 0x1D, 0x65, 0x92, 0xBD, 0x86,
@@ -43,8 +42,7 @@ static const uint8_t SBOX1[256] = {
0xC7, 0x80, 0x9E };
// SBOX2[x] = rotl<1>(SBOX1[x])
-alignas(64)
-static const uint8_t SBOX2[256] = {
+alignas(256) static const uint8_t SBOX2[256] = {
0xE0, 0x05, 0x58, 0xD9, 0x67, 0x4E, 0x81, 0xCB, 0xC9, 0x0B, 0xAE,
0x6A, 0xD5, 0x18, 0x5D, 0x82, 0x46, 0xDF, 0xD6, 0x27, 0x8A, 0x32,
0x4B, 0x42, 0xDB, 0x1C, 0x9E, 0x9C, 0x3A, 0xCA, 0x25, 0x7B, 0x0D,
@@ -71,8 +69,7 @@ static const uint8_t SBOX2[256] = {
0x8F, 0x01, 0x3D };
// SBOX3[x] = rotl<7>(SBOX1[x])
-alignas(64)
-static const uint8_t SBOX3[256] = {
+alignas(256) static const uint8_t SBOX3[256] = {
0x38, 0x41, 0x16, 0x76, 0xD9, 0x93, 0x60, 0xF2, 0x72, 0xC2, 0xAB,
0x9A, 0x75, 0x06, 0x57, 0xA0, 0x91, 0xF7, 0xB5, 0xC9, 0xA2, 0x8C,
0xD2, 0x90, 0xF6, 0x07, 0xA7, 0x27, 0x8E, 0xB2, 0x49, 0xDE, 0x43,
@@ -99,8 +96,7 @@ static const uint8_t SBOX3[256] = {
0xE3, 0x40, 0x4F };
// SBOX4[x] = SBOX1[rotl<1>(x)]
-alignas(64)
-static const uint8_t SBOX4[256] = {
+alignas(256) static const uint8_t SBOX4[256] = {
0x70, 0x2C, 0xB3, 0xC0, 0xE4, 0x57, 0xEA, 0xAE, 0x23, 0x6B, 0x45,
0xA5, 0xED, 0x4F, 0x1D, 0x92, 0x86, 0xAF, 0x7C, 0x1F, 0x3E, 0xDC,
0x5E, 0x0B, 0xA6, 0x39, 0xD5, 0x5D, 0xD9, 0x5A, 0x51, 0x6C, 0x8B,