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/stream/salsa20 | |
parent | 6816c9e71e01432792a997ad9a5d561b9cd94a48 (diff) |
Adding StreamCipher::seek interface, supporting seek in ChaCha, and also adding ChaCha8 support
Diffstat (limited to 'src/lib/stream/salsa20')
-rw-r--r-- | src/lib/stream/salsa20/salsa20.cpp | 4 | ||||
-rw-r--r-- | src/lib/stream/salsa20/salsa20.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/stream/salsa20/salsa20.cpp b/src/lib/stream/salsa20/salsa20.cpp index 1d3fe3d28..f11fe5e59 100644 --- a/src/lib/stream/salsa20/salsa20.cpp +++ b/src/lib/stream/salsa20/salsa20.cpp @@ -227,4 +227,8 @@ void Salsa20::clear() m_position = 0; } +void Salsa20::seek(u64bit) + { + throw Not_Implemented("Salsa20::seek"); + } } diff --git a/src/lib/stream/salsa20/salsa20.h b/src/lib/stream/salsa20/salsa20.h index 7e75470da..8256ea4db 100644 --- a/src/lib/stream/salsa20/salsa20.h +++ b/src/lib/stream/salsa20/salsa20.h @@ -33,6 +33,8 @@ class BOTAN_DLL Salsa20 final : public StreamCipher void clear() override; std::string name() const override; StreamCipher* clone() const override { return new Salsa20; } + + void seek(u64bit offset) override; private: void key_schedule(const byte key[], size_t key_len) override; |