diff options
author | René Korthaus <[email protected]> | 2016-07-19 15:28:09 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-07-20 09:04:05 +0200 |
commit | adfc3e082d176f2f5141374f507a13d575898cff (patch) | |
tree | e13bc9adb3989bf907359be93916a7d15accf5af /src/lib/stream/stream_cipher.cpp | |
parent | 308c7d5eda678566edd26e9ab20edbe772f46363 (diff) |
Make Stream_Cipher::set_iv() pure virtual
It provided a default implementation that only checked
that the length was correct, but ignored the actual data
and did not notify the caller, which seemed like a
rather odd behaviour.
The only implementation that used this default implementation,
RC4, now throws an exception.
Diffstat (limited to 'src/lib/stream/stream_cipher.cpp')
-rw-r--r-- | src/lib/stream/stream_cipher.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/stream/stream_cipher.cpp b/src/lib/stream/stream_cipher.cpp index 6f98df1fb..cd6400d8f 100644 --- a/src/lib/stream/stream_cipher.cpp +++ b/src/lib/stream/stream_cipher.cpp @@ -44,12 +44,6 @@ std::vector<std::string> StreamCipher::providers(const std::string& algo_spec) StreamCipher::StreamCipher() {} StreamCipher::~StreamCipher() {} -void StreamCipher::set_iv(const byte[], size_t iv_len) - { - if(!valid_iv_length(iv_len)) - throw Invalid_IV_Length(name(), iv_len); - } - #if defined(BOTAN_HAS_CHACHA) BOTAN_REGISTER_T_1LEN(StreamCipher, ChaCha, 20); #endif |