Crypto++ 8.2
Free C&
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
19NAMESPACE_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
25{
26public:
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
34protected:
35 static const word64 table[4*256+3];
36};
37
38NAMESPACE_END
39
40#endif
Iterated hash with a static transformation function.
Definition: iterhash.h:178
Tiger message digest.
Definition: tiger.h:25
Library configuration file.
Crypto++ library namespace.
Converts an enumeration to a type suitable for use as a template parameter.
Definition: cryptlib.h:136