aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-14 02:05:05 +0000
committerlloyd <[email protected]>2010-09-14 02:05:05 +0000
commit77a33b0c16880884cc0326e92c0c30d0e8444a91 (patch)
treedf2d917b312abb79c8654558399521366dbb2d14 /src/stream
parent59a9b0ef260b010606edc3384035b6aa12dd6415 (diff)
More changes to avoid vector to pointer implicit conversions
Diffstat (limited to 'src/stream')
-rw-r--r--src/stream/ctr/ctr.cpp4
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;
}