Security Scol plugin
ripemd.h
Go to the documentation of this file.
1// ripemd.h - originally 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
11NAMESPACE_BEGIN(CryptoPP)
12
13
18{
19public:
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
29class RIPEMD320 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 40, RIPEMD320>
30{
31public:
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
42class RIPEMD128 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, RIPEMD128>
43{
44public:
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
55class RIPEMD256 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 32, RIPEMD256>
56{
57public:
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
63NAMESPACE_END
64
65#endif
Iterated hash with a static transformation function.
Definition iterhash.h:182
RIPEMD-128 message digest.
Definition ripemd.h:43
RIPEMD-160 message digest.
Definition ripemd.h:18
RIPEMD-256 message digest.
Definition ripemd.h:56
RIPEMD-320 message digest.
Definition ripemd.h:30
unsigned int word32
32-bit unsigned datatype
Definition config_int.h:62
Base classes for iterated hashes.
Converts an enumeration to a type suitable for use as a template parameter.
Definition cryptlib.h:136