aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/threefish_avx2/threefish_avx2.h
blob: ba24f114fb7623bacf0a9566fd990c39d66dbf1d (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
/*
* 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 : 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;
      BlockCipher* clone() const override { return new Threefish_512_AVX2; }
   };

}

#endif