diff options
Diffstat (limited to 'src/stream/stream_cipher.h')
-rw-r--r-- | src/stream/stream_cipher.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream/stream_cipher.h b/src/stream/stream_cipher.h index 301e71f07..231414589 100644 --- a/src/stream/stream_cipher.h +++ b/src/stream/stream_cipher.h @@ -34,6 +34,10 @@ class BOTAN_DLL StreamCipher : public SymmetricAlgorithm void cipher1(byte buf[], size_t len) { cipher(buf, buf, len); } + template<typename Alloc> + void encipher(std::vector<byte, Alloc>& inout) + { cipher(&inout[0], &inout[0], inout.size()); } + /** * Resync the cipher using the IV * @param iv the initialization vector |