Botan
1.11.15
|
00001 /* 00002 * IDEA in SSE2 00003 * (C) 2009 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_IDEA_SSE2_H__ 00009 #define BOTAN_IDEA_SSE2_H__ 00010 00011 #include <botan/idea.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * IDEA in SSE2 00017 */ 00018 class BOTAN_DLL IDEA_SSE2 : public IDEA 00019 { 00020 public: 00021 size_t parallelism() const { return 8; } 00022 00023 void encrypt_n(const byte in[], byte out[], size_t blocks) const; 00024 void decrypt_n(const byte in[], byte out[], size_t blocks) const; 00025 00026 BlockCipher* clone() const { return new IDEA_SSE2; } 00027 }; 00028 00029 } 00030 00031 #endif