Crypto++ 8.0 Free C++ class library of cryptographic schemes

tiger.h
Go to the documentation of this file.
1 // tiger.h - originally written and placed in the public domain by Wei Dai
2
3 /// \file tiger.h
4 /// \brief Classes for the Tiger message digest
5 /// \since Crypto++ 2.1
6
7 #ifndef CRYPTOPP_TIGER_H
8 #define CRYPTOPP_TIGER_H
9
10 #include "config.h"
11 #include "iterhash.h"
12
13 // Clang 3.3 integrated assembler crash on Linux. Clang 3.4 due to compiler
14 // error with .intel_syntax, http://llvm.org/bugs/show_bug.cgi?id=24232
15 #if CRYPTOPP_BOOL_X32 || defined(CRYPTOPP_DISABLE_MIXED_ASM)
16 # define CRYPTOPP_DISABLE_TIGER_ASM 1
17 #endif
18
19 NAMESPACE_BEGIN(CryptoPP)
20
21 /// \brief Tiger message digest
22 /// \sa <a href="http://www.cryptolounge.org/wiki/Tiger">Tiger</a>
23 /// \since Crypto++ 2.1
24 class Tiger : public IteratedHashWithStaticTransform<word64, LittleEndian, 64, 24, Tiger>
25 {
26 public:
27 CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "Tiger";}
28 std::string AlgorithmProvider() const;
29
30 static void InitState(HashWordType *state);
31 static void Transform(word64 *digest, const word64 *data);
32 void TruncatedFinal(byte *hash, size_t size);
33
34 protected:
35 static const word64 table[4*256+3];
36 };
37
38 NAMESPACE_END
39
40 #endif
Tiger
Tiger message digest.
Definition: tiger.h:24
IteratedHashWithStaticTransform
Iterated hash with a static transformation function.
Definition: iterhash.h:176
EnumToType
Converts an enumeration to a type suitable for use as a template parameter.
Definition: cryptlib.h:135
config.h
Library configuration file.
CryptoPP
Crypto++ library namespace.