diff options
author | Simon Warta <[email protected]> | 2015-06-26 11:30:15 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-27 11:15:18 +0200 |
commit | 105fb962ae525428c2385098abdf20bbf4382353 (patch) | |
tree | 6bc8800e1e9ee9adbe3f0f345b96b99beb8189fc /src/lib/base/buf_comp.h | |
parent | 4b70dbf7c24dc4f60349e96220601f6c55c81c52 (diff) |
lib/base: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/base/buf_comp.h')
-rw-r--r-- | src/lib/base/buf_comp.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/base/buf_comp.h b/src/lib/base/buf_comp.h index 564da2262..30e30c71c 100644 --- a/src/lib/base/buf_comp.h +++ b/src/lib/base/buf_comp.h @@ -39,7 +39,7 @@ class BOTAN_DLL Buffered_Computation */ void update(const secure_vector<byte>& in) { - add_data(&in[0], in.size()); + add_data(in.data(), in.size()); } /** @@ -48,7 +48,7 @@ class BOTAN_DLL Buffered_Computation */ void update(const std::vector<byte>& in) { - add_data(&in[0], in.size()); + add_data(in.data(), in.size()); } /** @@ -97,7 +97,7 @@ class BOTAN_DLL Buffered_Computation secure_vector<byte> final() { secure_vector<byte> output(output_length()); - final_result(&output[0]); + final_result(output.data()); return output; } @@ -105,7 +105,7 @@ class BOTAN_DLL Buffered_Computation void final(std::vector<byte, Alloc>& out) { out.resize(output_length()); - final_result(&out[0]); + final_result(out.data()); } /** @@ -129,7 +129,7 @@ class BOTAN_DLL Buffered_Computation */ secure_vector<byte> process(const secure_vector<byte>& in) { - add_data(&in[0], in.size()); + add_data(in.data(), in.size()); return final(); } @@ -141,7 +141,7 @@ class BOTAN_DLL Buffered_Computation */ secure_vector<byte> process(const std::vector<byte>& in) { - add_data(&in[0], in.size()); + add_data(in.data(), in.size()); return final(); } |