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/transform.h | |
parent | 4b70dbf7c24dc4f60349e96220601f6c55c81c52 (diff) |
lib/base: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/base/transform.h')
-rw-r--r-- | src/lib/base/transform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/base/transform.h b/src/lib/base/transform.h index 75bd5004a..b5916a3a4 100644 --- a/src/lib/base/transform.h +++ b/src/lib/base/transform.h @@ -33,7 +33,7 @@ class BOTAN_DLL Transform template<typename Alloc> secure_vector<byte> start(const std::vector<byte, Alloc>& nonce) { - return start(&nonce[0], nonce.size()); + return start(nonce.data(), nonce.size()); } /** @@ -44,7 +44,7 @@ class BOTAN_DLL Transform BOTAN_DEPRECATED("Use Transform::start") secure_vector<byte> start_vec(const std::vector<byte, Alloc>& nonce) { - return start(&nonce[0], nonce.size()); + return start(nonce.data(), nonce.size()); } /** @@ -147,7 +147,7 @@ class BOTAN_DLL Keyed_Transform : public Transform template<typename Alloc> void set_key(const std::vector<byte, Alloc>& key) { - set_key(&key[0], key.size()); + set_key(key.data(), key.size()); } void set_key(const SymmetricKey& key) |