diff options
author | lloyd <[email protected]> | 2013-03-16 22:23:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-03-16 22:23:59 +0000 |
commit | 158b20308dcc5c81e712e2e496fa0a5944e484a4 (patch) | |
tree | b797fed9a06ba62f57b4c6d771d389c493f6ab0c /src/stream | |
parent | 01d1a8f734b9912301e4c0b6504c5ffa1d09e27a (diff) |
Working GCM. Add support for AEAD modes in self tests
Diffstat (limited to 'src/stream')
-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 |