File indexing completed on 2025-01-18 09:55:08
0001
0002
0003
0004
0005
0006 #ifndef CRYPTOPP_RIPEMD_H
0007 #define CRYPTOPP_RIPEMD_H
0008
0009 #include "iterhash.h"
0010
0011 NAMESPACE_BEGIN(CryptoPP)
0012
0013
0014
0015
0016
0017 class RIPEMD160 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 20, RIPEMD160>
0018 {
0019 public:
0020 static void InitState(HashWordType *state);
0021 static void Transform(word32 *digest, const word32 *data);
0022 CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-160";}
0023 };
0024
0025
0026
0027
0028
0029 class RIPEMD320 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 40, RIPEMD320>
0030 {
0031 public:
0032 static void InitState(HashWordType *state);
0033 static void Transform(word32 *digest, const word32 *data);
0034 CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-320";}
0035 };
0036
0037
0038
0039
0040
0041
0042 class RIPEMD128 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, RIPEMD128>
0043 {
0044 public:
0045 static void InitState(HashWordType *state);
0046 static void Transform(word32 *digest, const word32 *data);
0047 CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-128";}
0048 };
0049
0050
0051
0052
0053
0054
0055 class RIPEMD256 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 32, RIPEMD256>
0056 {
0057 public:
0058 static void InitState(HashWordType *state);
0059 static void Transform(word32 *digest, const word32 *data);
0060 CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "RIPEMD-256";}
0061 };
0062
0063 NAMESPACE_END
0064
0065 #endif