Security Scol plugin
tiger.h
Go to the documentation of this file.
1// tiger.h - originally written and placed in the public domain by Wei Dai
2
12
13#ifndef CRYPTOPP_TIGER_H
14#define CRYPTOPP_TIGER_H
15
16#include "config.h"
17#include "iterhash.h"
18
19// Clang 3.3 integrated assembler crash on Linux. Clang 3.4 due to compiler
20// error with .intel_syntax, http://llvm.org/bugs/show_bug.cgi?id=24232
21#if CRYPTOPP_BOOL_X32 || defined(CRYPTOPP_DISABLE_MIXED_ASM)
22# define CRYPTOPP_DISABLE_TIGER_ASM 1
23#endif
24
25NAMESPACE_BEGIN(CryptoPP)
26
27
36{
37public:
38 CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "Tiger";}
39 std::string AlgorithmProvider() const;
40
43 static void InitState(HashWordType *state);
47 static void Transform(word64 *digest, const word64 *data);
53 void TruncatedFinal(byte *digest, size_t digestSize);
54
55protected:
56 static const word64 table[4*256+3];
57};
58
59NAMESPACE_END
60
61#endif
Iterated hash with a static transformation function.
Definition iterhash.h:182
Tiger message digest.
Definition tiger.h:36
Library configuration file.
Base classes for iterated hashes.
Converts an enumeration to a type suitable for use as a template parameter.
Definition cryptlib.h:136