From a5efc440cca7485f6b8168a317c9088a762cdbc8 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 12 Aug 2010 15:57:43 +0000 Subject: Add also AES-192 using SSSE3 --- src/block/aes_ssse3/aes_ssse3.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/block/aes_ssse3/aes_ssse3.h') diff --git a/src/block/aes_ssse3/aes_ssse3.h b/src/block/aes_ssse3/aes_ssse3.h index 25a3e97b9..8087b58a0 100644 --- a/src/block/aes_ssse3/aes_ssse3.h +++ b/src/block/aes_ssse3/aes_ssse3.h @@ -32,6 +32,26 @@ class BOTAN_DLL AES_128_SSSE3 : public BlockCipher SecureVector EK, DK; }; +/** +* AES-192 using SSSE3 +*/ +class BOTAN_DLL AES_192_SSSE3 : public BlockCipher + { + public: + void encrypt_n(const byte in[], byte out[], u32bit blocks) const; + void decrypt_n(const byte in[], byte out[], u32bit blocks) const; + + void clear() { EK.clear(); DK.clear(); } + std::string name() const { return "AES-192"; } + BlockCipher* clone() const { return new AES_192_SSSE3; } + + AES_192_SSSE3() : BlockCipher(16, 24) {} + private: + void key_schedule(const byte[], u32bit); + + SecureVector EK, DK; + }; + /** * AES-256 using SSSE3 */ -- cgit v1.2.3