aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/block_cipher.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 11:28:13 +0200
committerSimon Warta <[email protected]>2015-06-27 11:15:18 +0200
commit4b70dbf7c24dc4f60349e96220601f6c55c81c52 (patch)
treeb20cb7ace806a5937444a926d597987588a9856b /src/lib/block/block_cipher.h
parent922336151782c42455d08cca787215b0a4e7b617 (diff)
lib/block: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/block/block_cipher.h')
-rw-r--r--src/lib/block/block_cipher.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/block/block_cipher.h b/src/lib/block/block_cipher.h
index 73e67b790..060dbb29b 100644
--- a/src/lib/block/block_cipher.h
+++ b/src/lib/block/block_cipher.h
@@ -82,7 +82,7 @@ class BOTAN_DLL BlockCipher : public SymmetricAlgorithm
template<typename Alloc>
void encrypt(std::vector<byte, Alloc>& block) const
{
- return encrypt_n(&block[0], &block[0], block.size() / block_size());
+ return encrypt_n(block.data(), block.data(), block.size() / block_size());
}
/**
@@ -92,7 +92,7 @@ class BOTAN_DLL BlockCipher : public SymmetricAlgorithm
template<typename Alloc>
void decrypt(std::vector<byte, Alloc>& block) const
{
- return decrypt_n(&block[0], &block[0], block.size() / block_size());
+ return decrypt_n(block.data(), block.data(), block.size() / block_size());
}
/**
@@ -104,7 +104,7 @@ class BOTAN_DLL BlockCipher : public SymmetricAlgorithm
void encrypt(const std::vector<byte, Alloc>& in,
std::vector<byte, Alloc2>& out) const
{
- return encrypt_n(&in[0], &out[0], in.size() / block_size());
+ return encrypt_n(in.data(), out.data(), in.size() / block_size());
}
/**
@@ -116,7 +116,7 @@ class BOTAN_DLL BlockCipher : public SymmetricAlgorithm
void decrypt(const std::vector<byte, Alloc>& in,
std::vector<byte, Alloc2>& out) const
{
- return decrypt_n(&in[0], &out[0], in.size() / block_size());
+ return decrypt_n(in.data(), out.data(), in.size() / block_size());
}
/**