diff options
Diffstat (limited to 'src/block/serpent/serpent.h')
-rw-r--r-- | src/block/serpent/serpent.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block/serpent/serpent.h b/src/block/serpent/serpent.h index 515a90407..fccdcf214 100644 --- a/src/block/serpent/serpent.h +++ b/src/block/serpent/serpent.h @@ -15,7 +15,7 @@ namespace Botan { /** * Serpent, an AES finalist */ -class BOTAN_DLL Serpent : public BlockCipher +class BOTAN_DLL Serpent : public BlockCipher_Fixed_Block_Size<16> { public: void encrypt_n(const byte in[], byte out[], size_t blocks) const; @@ -24,7 +24,9 @@ class BOTAN_DLL Serpent : public BlockCipher void clear() { zeroise(round_key); } std::string name() const { return "Serpent"; } BlockCipher* clone() const { return new Serpent; } - Serpent() : BlockCipher(16, 16, 32, 8), round_key(132) {} + + Serpent() : BlockCipher_Fixed_Block_Size(16, 32, 8), + round_key(132) {} protected: /** * For use by subclasses using SIMD, asm, etc |