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_CONSTEXPR
static
const
char
*StaticAlgorithmName() {
return
"Tiger"
;}
23
24
protected
:
25
static
const
word64 table[4*256+3];
26
};
27
28
NAMESPACE_END
29
30
#endif
EnumToType
Converts a typename to an enumerated value.
Definition:
cryptlib.h:120
CryptoPP
Crypto++ library namespace.
config.h
Library configuration file.
Tiger
Tiger
Definition:
tiger.h:16
IteratedHashWithStaticTransform
Iterated hash with a static transformation function.
Definition:
iterhash.h:152
Generated on Fri Feb 11 2022 18:35:51 for Crypto++ by
1.8.17