diff options
Diffstat (limited to 'src/block/xtea/xtea.cpp')
-rw-r--r-- | src/block/xtea/xtea.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/block/xtea/xtea.cpp b/src/block/xtea/xtea.cpp index ba07ba57c..597eedd07 100644 --- a/src/block/xtea/xtea.cpp +++ b/src/block/xtea/xtea.cpp @@ -64,8 +64,8 @@ void XTEA::encrypt_n(const byte in[], byte out[], size_t blocks) const while(blocks >= 4) { xtea_encrypt_4(in, out, &(this->EK[0])); - in += 4 * block_size(); - out += 4 * block_size(); + in += 4 * BLOCK_SIZE; + out += 4 * BLOCK_SIZE; blocks -= 4; } @@ -82,8 +82,8 @@ void XTEA::encrypt_n(const byte in[], byte out[], size_t blocks) const store_be(out, L, R); - in += block_size(); - out += block_size(); + in += BLOCK_SIZE; + out += BLOCK_SIZE; } } @@ -95,8 +95,8 @@ void XTEA::decrypt_n(const byte in[], byte out[], size_t blocks) const while(blocks >= 4) { xtea_decrypt_4(in, out, &(this->EK[0])); - in += 4 * block_size(); - out += 4 * block_size(); + in += 4 * BLOCK_SIZE; + out += 4 * BLOCK_SIZE; blocks -= 4; } @@ -113,8 +113,8 @@ void XTEA::decrypt_n(const byte in[], byte out[], size_t blocks) const store_be(out, L, R); - in += block_size(); - out += block_size(); + in += BLOCK_SIZE; + out += BLOCK_SIZE; } } |