Fabcoin Core  0.16.2
P2P Digital Currency
ripemd.h
Go to the documentation of this file.
1 // ripemd.h - written and placed in the public domain by Wei Dai
2 
5 
6 #ifndef CRYPTOPP_RIPEMD_H
7 #define CRYPTOPP_RIPEMD_H
8 
9 #include "iterhash.h"
10 
12 
18 {
19 public:
20  static void InitState(HashWordType *state);
21  static void Transform(word32 *digest, const word32 *data);
22  CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-160";}
23 };
24 
29 class RIPEMD320 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 40, RIPEMD320>
30 {
31 public:
32  static void InitState(HashWordType *state);
33  static void Transform(word32 *digest, const word32 *data);
34  CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-320";}
35 };
36 
42 class RIPEMD128 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, RIPEMD128>
43 {
44 public:
45  static void InitState(HashWordType *state);
46  static void Transform(word32 *digest, const word32 *data);
47  CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-128";}
48 };
49 
55 class RIPEMD256 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 32, RIPEMD256>
56 {
57 public:
58  static void InitState(HashWordType *state);
59  static void Transform(word32 *digest, const word32 *data);
60  CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-256";}
61 };
62 
64 
65 #endif
#define CRYPTOPP_STATIC_CONSTEXPR
Definition: config.h:892
static void InitState(HashWordType *state)
Definition: ripemd.cpp:235
CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName()
Definition: ripemd.h:34
Iterated hash with a static transformation function.
Definition: iterhash.h:150
#define NAMESPACE_BEGIN(x)
Definition: config.h:200
Converts an enumeration to a type suitable for use as a template parameter.
Definition: cryptlib.h:116
RIPEMD-160 message digest.
Definition: ripemd.h:17
RIPEMD-256 message digest.
Definition: ripemd.h:55
CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName()
Definition: ripemd.h:22
static void Transform(word32 *digest, const word32 *data)
Definition: ripemd.cpp:249
CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName()
Definition: ripemd.h:60
RIPEMD-320 message digest.
Definition: ripemd.h:29
#define NAMESPACE_END
Definition: config.h:201
unsigned int word32
Definition: config.h:231
RIPEMD-128 message digest.
Definition: ripemd.h:42
uint8_t const * data
Definition: sha3.h:19
CRYPTOPP_STATIC_CONSTEXPR const char * StaticAlgorithmName()
Definition: ripemd.h:47