aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/xtea/xtea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/xtea/xtea.cpp')
-rw-r--r--src/block/xtea/xtea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/xtea/xtea.cpp b/src/block/xtea/xtea.cpp
index bb1a30374..03e9f628c 100644
--- a/src/block/xtea/xtea.cpp
+++ b/src/block/xtea/xtea.cpp
@@ -63,7 +63,7 @@ void XTEA::encrypt_n(const byte in[], byte out[], u32bit blocks) const
{
while(blocks >= 4)
{
- xtea_encrypt_4(in, out, this->EK);
+ xtea_encrypt_4(in, out, &(this->EK[0]));
in += 4 * BLOCK_SIZE;
out += 4 * BLOCK_SIZE;
blocks -= 4;
@@ -93,7 +93,7 @@ void XTEA::decrypt_n(const byte in[], byte out[], u32bit blocks) const
{
while(blocks >= 4)
{
- xtea_decrypt_4(in, out, this->EK);
+ xtea_decrypt_4(in, out, &(this->EK[0]));
in += 4 * BLOCK_SIZE;
out += 4 * BLOCK_SIZE;
blocks -= 4;