Botan
1.11.15
|
00001 /* 00002 * XTEA in SIMD 00003 * (C) 2009 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_XTEA_SIMD_H__ 00009 #define BOTAN_XTEA_SIMD_H__ 00010 00011 #include <botan/xtea.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * XTEA implemented using SIMD operations 00017 */ 00018 class BOTAN_DLL XTEA_SIMD : public XTEA 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 BlockCipher* clone() const { return new XTEA_SIMD; } 00026 }; 00027 00028 } 00029 00030 #endif