aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/noekeon/noekeon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/block/noekeon/noekeon.cpp')
-rw-r--r--src/lib/block/noekeon/noekeon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/block/noekeon/noekeon.cpp b/src/lib/block/noekeon/noekeon.cpp
index 09a2f6c15..fb1a215fe 100644
--- a/src/lib/block/noekeon/noekeon.cpp
+++ b/src/lib/block/noekeon/noekeon.cpp
@@ -97,7 +97,7 @@ void Noekeon::encrypt_n(const byte in[], byte out[], size_t blocks) const
for(size_t j = 0; j != 16; ++j)
{
A0 ^= RC[j];
- theta(A0, A1, A2, A3, &EK[0]);
+ theta(A0, A1, A2, A3, EK.data());
A1 = rotate_left(A1, 1);
A2 = rotate_left(A2, 5);
@@ -111,7 +111,7 @@ void Noekeon::encrypt_n(const byte in[], byte out[], size_t blocks) const
}
A0 ^= RC[16];
- theta(A0, A1, A2, A3, &EK[0]);
+ theta(A0, A1, A2, A3, EK.data());
store_be(out, A0, A1, A2, A3);
@@ -134,7 +134,7 @@ void Noekeon::decrypt_n(const byte in[], byte out[], size_t blocks) const
for(size_t j = 16; j != 0; --j)
{
- theta(A0, A1, A2, A3, &DK[0]);
+ theta(A0, A1, A2, A3, DK.data());
A0 ^= RC[j];
A1 = rotate_left(A1, 1);
@@ -148,7 +148,7 @@ void Noekeon::decrypt_n(const byte in[], byte out[], size_t blocks) const
A3 = rotate_right(A3, 2);
}
- theta(A0, A1, A2, A3, &DK[0]);
+ theta(A0, A1, A2, A3, DK.data());
A0 ^= RC[0];
store_be(out, A0, A1, A2, A3);