diff options
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/ctr/ctr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream/ctr/ctr.cpp b/src/stream/ctr/ctr.cpp index 66af28a15..bf546da9a 100644 --- a/src/stream/ctr/ctr.cpp +++ b/src/stream/ctr/ctr.cpp @@ -108,7 +108,7 @@ void CTR_BE::set_iv(const byte iv[], u32bit iv_len) break; } - permutation->encrypt_n(counter, buffer, PARALLEL_BLOCKS); + permutation->encrypt_n(&counter[0], &buffer[0], PARALLEL_BLOCKS); position = 0; } @@ -134,7 +134,7 @@ void CTR_BE::increment_counter() this_ctr[permutation->BLOCK_SIZE-1] = last_byte; } - permutation->encrypt_n(counter, buffer, PARALLEL_BLOCKS); + permutation->encrypt_n(&counter[0], &buffer[0], PARALLEL_BLOCKS); position = 0; } |