aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/buf_comp/buf_comp.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-13 15:21:31 +0000
committerlloyd <[email protected]>2010-09-13 15:21:31 +0000
commit4a7e9edcc92b08a285ea24549fd8c813d10b63b9 (patch)
tree569e357cbc1bd2b195c1b10b281f6c0bbf01fd33 /src/utils/buf_comp/buf_comp.h
parent27d79c87365105d6128afe9eaf8a82383976ed44 (diff)
First set of changes for avoiding use implicit vector->pointer conversions
Diffstat (limited to 'src/utils/buf_comp/buf_comp.h')
-rw-r--r--src/utils/buf_comp/buf_comp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/utils/buf_comp/buf_comp.h b/src/utils/buf_comp/buf_comp.h
index e807e6abf..3afa086b0 100644
--- a/src/utils/buf_comp/buf_comp.h
+++ b/src/utils/buf_comp/buf_comp.h
@@ -37,7 +37,10 @@ class BOTAN_DLL BufferedComputation
* Add new input to process.
* @param in the input to process as a MemoryRegion
*/
- void update(const MemoryRegion<byte>& in) { add_data(in, in.size()); }
+ void update(const MemoryRegion<byte>& in)
+ {
+ add_data(&in[0], in.size());
+ }
/**
* Add new input to process.
@@ -72,7 +75,7 @@ class BOTAN_DLL BufferedComputation
SecureVector<byte> final()
{
SecureVector<byte> output(OUTPUT_LENGTH);
- final_result(output);
+ final_result(&output[0]);
return output;
}
@@ -97,7 +100,7 @@ class BOTAN_DLL BufferedComputation
*/
SecureVector<byte> process(const MemoryRegion<byte>& in)
{
- add_data(in, in.size());
+ add_data(&in[0], in.size());
return final();
}