diff options
Diffstat (limited to 'src/block/aes/aes.h')
-rw-r--r-- | src/block/aes/aes.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/block/aes/aes.h b/src/block/aes/aes.h index d62413f5b..6fa0ccaff 100644 --- a/src/block/aes/aes.h +++ b/src/block/aes/aes.h @@ -15,17 +15,19 @@ namespace Botan { /** * Rijndael aka AES */ -class BOTAN_DLL AES : public BlockCipher +class BOTAN_DLL AES : public BlockCipher_Fixed_Block_Size<16> { public: + std::string name() const { return "AES"; } + void encrypt_n(const byte in[], byte out[], size_t blocks) const; void decrypt_n(const byte in[], byte out[], size_t blocks) const; void clear(); - std::string name() const { return "AES"; } BlockCipher* clone() const { return new AES; } - AES() : BlockCipher(16, 16, 32, 8), EK(56), ME(16), DK(56), MD(16) + AES() : BlockCipher_Fixed_Block_Size(16, 32, 8), + EK(56), ME(16), DK(56), MD(16) { ROUNDS = 14; } /** |