Crypto++ 8.7
Free C++ class library of cryptographic schemes
md5.h
1#ifndef CRYPTOPP_MD5_H
2#define CRYPTOPP_MD5_H
3
4#include "iterhash.h"
5
6NAMESPACE_BEGIN(CryptoPP)
7
8namespace Weak1 {
9
10/// \brief MD5 message digest
11/// \sa <a href="http://www.cryptolounge.org/wiki/MD5">MD5</a>
12/// \since Crypto++ 1.0
13class MD5 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD5>
14{
15public:
16 static void InitState(HashWordType *state);
17 static void Transform(word32 *digest, const word32 *data);
18 CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "MD5";}
19};
20
21}
22#if CRYPTOPP_ENABLE_NAMESPACE_WEAK >= 1
23namespace Weak {using namespace Weak1;} // import Weak1 into CryptoPP::Weak
24#else
25using namespace Weak1; // import Weak1 into CryptoPP with warning
26#ifdef __GNUC__
27#warning "You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning."
28#else
29#pragma message("You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning.")
30#endif
31#endif
32
33NAMESPACE_END
34
35#endif
Iterated hash with a static transformation function.
Definition: iterhash.h:182
MD5 message digest.
Definition: md5.h:14
unsigned int word32
32-bit unsigned datatype
Definition: config_int.h:62
Base classes for iterated hashes.
Crypto++ library namespace.
Namespace containing weak and wounded algorithms.
Definition: arc4.cpp:14