diff options
Diffstat (limited to 'src/lib/stream/shake_cipher/shake_cipher.cpp')
-rw-r--r-- | src/lib/stream/shake_cipher/shake_cipher.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/stream/shake_cipher/shake_cipher.cpp b/src/lib/stream/shake_cipher/shake_cipher.cpp index f6cac8354..b0e08a700 100644 --- a/src/lib/stream/shake_cipher/shake_cipher.cpp +++ b/src/lib/stream/shake_cipher/shake_cipher.cpp @@ -75,4 +75,24 @@ void SHAKE_128_Cipher::seek(uint64_t) { throw Not_Implemented("SHAKE_128_Cipher::seek"); } + +Key_Length_Specification SHAKE_128_Cipher::key_spec() const + { + /* + In principle SHAKE can accept arbitrary length inputs, but this + does not seem required for a stream cipher. + */ + return Key_Length_Specification(16, 160, 8); + } + +std::string SHAKE_128_Cipher::name() const + { + return "SHAKE-128"; + } + +StreamCipher* SHAKE_128_Cipher::clone() const + { + return new SHAKE_128_Cipher; + } + } |