diff options
Diffstat (limited to 'src/lib/stream/stream_cipher.h')
-rw-r--r-- | src/lib/stream/stream_cipher.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/stream/stream_cipher.h b/src/lib/stream/stream_cipher.h index 9768aea70..bfdd152a7 100644 --- a/src/lib/stream/stream_cipher.h +++ b/src/lib/stream/stream_cipher.h @@ -38,15 +38,15 @@ class BOTAN_DLL StreamCipher : public SymmetricAlgorithm template<typename Alloc> void encipher(std::vector<byte, Alloc>& inout) - { cipher(&inout[0], &inout[0], inout.size()); } + { cipher(inout.data(), inout.data(), inout.size()); } template<typename Alloc> void encrypt(std::vector<byte, Alloc>& inout) - { cipher(&inout[0], &inout[0], inout.size()); } + { cipher(inout.data(), inout.data(), inout.size()); } template<typename Alloc> void decrypt(std::vector<byte, Alloc>& inout) - { cipher(&inout[0], &inout[0], inout.size()); } + { cipher(inout.data(), inout.data(), inout.size()); } /** * Resync the cipher using the IV |