Botan
1.11.15
|
00001 /* 00002 * Threefish-512 in AVX2 00003 * (C) 2013 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_THREEFISH_AVX2_H__ 00009 #define BOTAN_THREEFISH_AVX2_H__ 00010 00011 #include <botan/threefish.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * Threefish-512 00017 */ 00018 class BOTAN_DLL Threefish_512_AVX2 : public Threefish_512 00019 { 00020 private: 00021 void encrypt_n(const byte in[], byte out[], size_t blocks) const override; 00022 void decrypt_n(const byte in[], byte out[], size_t blocks) const override; 00023 00024 /* TODO: 00025 void skein_feedfwd(const secure_vector<u64bit>& M, 00026 const secure_vector<u64bit>& T) override; 00027 */ 00028 00029 BlockCipher* clone() const override { return new Threefish_512_AVX2; } 00030 }; 00031 00032 } 00033 00034 #endif