aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/stream_cipher.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 18:54:36 +0200
committerSimon Warta <[email protected]>2015-06-23 18:54:36 +0200
commit9a841344acb1844082a0e46c26f91b4f50af86dd (patch)
tree3bad0843eaaa50ff2f6869a3c886a65493391946 /src/lib/stream/stream_cipher.h
parente4cfc6684df02e1c1c2b583c764514cfc08e9c39 (diff)
lib/stream: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/stream/stream_cipher.h')
-rw-r--r--src/lib/stream/stream_cipher.h6
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