diff options
author | Jack Lloyd <[email protected]> | 2017-09-24 13:04:08 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-24 13:04:08 -0400 |
commit | 3785deadff522923299c34bcd2ba364c02abbf0c (patch) | |
tree | d8993e9f91de3353b0be96bd7a5d542c6ae8192d /src/lib/modes | |
parent | 8e70617d88b3f486d03f156f4800673bc4e14d06 (diff) |
Further build/test fixes for restricted configurations
Diffstat (limited to 'src/lib/modes')
-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); |