aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/transform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/base/transform.h')
-rw-r--r--src/lib/base/transform.h6
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)