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