aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream/ctr
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/ctr')
-rw-r--r--src/stream/ctr/ctr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/ctr/ctr.cpp b/src/stream/ctr/ctr.cpp
index 6162a76a0..66af28a15 100644
--- a/src/stream/ctr/ctr.cpp
+++ b/src/stream/ctr/ctr.cpp
@@ -121,7 +121,7 @@ void CTR_BE::increment_counter()
for(u32bit i = 0; i != PARALLEL_BLOCKS; ++i)
{
- byte* this_ctr = counter + i*permutation->BLOCK_SIZE;
+ byte* this_ctr = &counter[i * permutation->BLOCK_SIZE];
byte last_byte = this_ctr[permutation->BLOCK_SIZE-1];
last_byte += PARALLEL_BLOCKS;