diff options
author | SimCog <[email protected]> | 2016-06-14 18:21:10 +0200 |
---|---|---|
committer | SimCog <[email protected]> | 2016-06-18 01:06:21 +0200 |
commit | 00337c4ea2af6b1727be0bdf9b719c98760a14fd (patch) | |
tree | adc8b6f68311b2c9649bdb84766f22f99d2424db /src/lib/prov/openssl/openssl_rc4.cpp | |
parent | 6816c9e71e01432792a997ad9a5d561b9cd94a48 (diff) |
Adding StreamCipher::seek interface, supporting seek in ChaCha, and also adding ChaCha8 support
Diffstat (limited to 'src/lib/prov/openssl/openssl_rc4.cpp')
-rw-r--r-- | src/lib/prov/openssl/openssl_rc4.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/prov/openssl/openssl_rc4.cpp b/src/lib/prov/openssl/openssl_rc4.cpp index e36535e08..070cdb14d 100644 --- a/src/lib/prov/openssl/openssl_rc4.cpp +++ b/src/lib/prov/openssl/openssl_rc4.cpp @@ -45,6 +45,11 @@ class OpenSSL_RC4 : public StreamCipher explicit OpenSSL_RC4(size_t skip = 0) : m_skip(skip) { clear(); } ~OpenSSL_RC4() { clear(); } + + void seek(u64bit) override + { + throw Exception("RC4 does not support seeking"); + } private: void cipher(const byte in[], byte out[], size_t length) override { |