diff options
Diffstat (limited to 'src/stream/ctr/ctr.cpp')
-rw-r--r-- | src/stream/ctr/ctr.cpp | 2 |
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; |