diff options
Diffstat (limited to 'src/lib/block/block_cipher.h')
-rw-r--r-- | src/lib/block/block_cipher.h | 8 |
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()); } /** |