diff options
Diffstat (limited to 'src/lib/modes/aead/siv')
-rw-r--r-- | src/lib/modes/aead/siv/siv.cpp | 5 | ||||
-rw-r--r-- | src/lib/modes/aead/siv/siv.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/modes/aead/siv/siv.cpp b/src/lib/modes/aead/siv/siv.cpp index 665d25ec9..1ddfd4d88 100644 --- a/src/lib/modes/aead/siv/siv.cpp +++ b/src/lib/modes/aead/siv/siv.cpp @@ -23,6 +23,11 @@ SIV_Mode::SIV_Mode(BlockCipher* cipher) : throw Invalid_Argument("SIV requires a 128 bit block cipher"); } +SIV_Mode::~SIV_Mode() + { + // for ~unique_ptr + } + void SIV_Mode::clear() { m_ctr->clear(); diff --git a/src/lib/modes/aead/siv/siv.h b/src/lib/modes/aead/siv/siv.h index e4454dade..255e4a277 100644 --- a/src/lib/modes/aead/siv/siv.h +++ b/src/lib/modes/aead/siv/siv.h @@ -10,11 +10,11 @@ #define BOTAN_AEAD_SIV_H_ #include <botan/aead.h> +#include <botan/stream_cipher.h> namespace Botan { class BlockCipher; -class StreamCipher; class MessageAuthenticationCode; /** @@ -55,6 +55,8 @@ class BOTAN_PUBLIC_API(2,0) SIV_Mode : public AEAD_Mode protected: explicit SIV_Mode(BlockCipher* cipher); + ~SIV_Mode(); + StreamCipher& ctr() { return *m_ctr; } void set_ctr_iv(secure_vector<uint8_t> V); |