Crypto++  5.6.5
Free C++ class library of cryptographic schemes
tiger.h
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 
13 NAMESPACE_BEGIN(CryptoPP)
14 
15 /// <a href="http://www.cryptolounge.org/wiki/Tiger">Tiger</a>
16 class Tiger : public IteratedHashWithStaticTransform<word64, LittleEndian, 64, 24, Tiger>
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 
28 NAMESPACE_END
29 
30 #endif
Tiger
Definition: tiger.h:16
Iterated hash with a static transformation function.
Definition: iterhash.h:150
Converts an enumeration to a type suitable for use as a template parameter.
Definition: cryptlib.h:116
Library configuration file.
Crypto++ library namespace.