blob: fbf2f9d8abb3f73b6204b5f06fa86e28287739ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Threefish-512 in AVX2
* (C) 2013 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_THREEFISH_AVX2_H__
#define BOTAN_THREEFISH_AVX2_H__
#include <botan/threefish.h>
namespace Botan {
/**
* Threefish-512
*/
class BOTAN_DLL Threefish_512_AVX2 final : public Threefish_512
{
private:
void encrypt_n(const byte in[], byte out[], size_t blocks) const override;
void decrypt_n(const byte in[], byte out[], size_t blocks) const override;
/* TODO:
void skein_feedfwd(const secure_vector<u64bit>& M,
const secure_vector<u64bit>& T) override;
*/
BlockCipher* clone() const override { return new Threefish_512_AVX2; }
};
}
#endif
|