Fabcoin Core  0.16.2
P2P Digital Currency
tiger.h
Go to the documentation of this file.
1 #ifndef CRYPTOPP_TIGER_H
2 #define CRYPTOPP_TIGER_H
3 
4 #include "config.h"
5 #include "iterhash.h"
6 
7 // Clang 3.3 integrated assembler crash on Linux
8 // http://github.com/weidai11/cryptopp/issues/264
9 #if defined(CRYPTOPP_LLVM_CLANG_VERSION) && (CRYPTOPP_LLVM_CLANG_VERSION < 30400)
10 # define CRYPTOPP_DISABLE_TIGER_ASM
11 #endif
12 
14 
17 {
18 public:
19  static void InitState(HashWordType *state);
20  static void Transform(word64 *digest, const word64 *data);
21  void TruncatedFinal(byte *hash, size_t size);
22  CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "Tiger";}
23 
24 protected:
25  static const word64 table[4*256+3];
26 };
27 
29 
30 #endif
uint8_t byte
Definition: Common.h:57
#define CRYPTOPP_STATIC_CONSTEXPR
Definition: config.h:892
Tiger
Definition: tiger.h:16
Iterated hash with a static transformation function.
Definition: iterhash.h:150
#define NAMESPACE_BEGIN(x)
Definition: config.h:200
Converts an enumeration to a type suitable for use as a template parameter.
Definition: cryptlib.h:116
Library configuration file.
CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName()
Definition: tiger.h:22
unsigned long long word64
Definition: config.h:240
uint8_t const size_t const size
Definition: sha3.h:20
#define NAMESPACE_END
Definition: config.h:201
uint8_t const * data
Definition: sha3.h:19