diff options
Diffstat (limited to 'src/lib/stream/shake_cipher/shake_cipher.h')
-rw-r--r-- | src/lib/stream/shake_cipher/shake_cipher.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/lib/stream/shake_cipher/shake_cipher.h b/src/lib/stream/shake_cipher/shake_cipher.h index 344ac965b..492341a7c 100644 --- a/src/lib/stream/shake_cipher/shake_cipher.h +++ b/src/lib/stream/shake_cipher/shake_cipher.h @@ -36,18 +36,11 @@ class BOTAN_PUBLIC_API(2,0) SHAKE_128_Cipher final : public StreamCipher */ void set_iv(const uint8_t iv[], size_t iv_len) override; - /** - * In principle SHAKE can accept arbitrary length inputs, but this - * does not seem required for a stream cipher. - */ - Key_Length_Specification key_spec() const override - { - return Key_Length_Specification(16, 160, 8); - } + Key_Length_Specification key_spec() const override; void clear() override; - std::string name() const override { return "SHAKE-128"; } - StreamCipher* clone() const override { return new SHAKE_128_Cipher; } + std::string name() const override; + StreamCipher* clone() const override; private: void key_schedule(const uint8_t key[], size_t key_len) override; |