~zooko/cryptopp/trunk

1 by weidai
Initial revision
1
#ifndef CRYPTOPP_MD5_H
2
#define CRYPTOPP_MD5_H
3
4
#include "iterhash.h"
5
6
NAMESPACE_BEGIN(CryptoPP)
7
267 by weidai
move MD2, MD4, MD5, PanamaHash, WAKE_CFB into the namespace 'Weak'
8
namespace Weak {
9
10
//! <a href="http://www.cryptolounge.org/wiki/MD5">MD5</a>
75 by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes
11
class MD5 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD5>
1 by weidai
Initial revision
12
{
13
public:
75 by weidai
create DLL version, fix GetNextIV() bug in CTR and OFB modes
14
	static void InitState(HashWordType *state);
1 by weidai
Initial revision
15
	static void Transform(word32 *digest, const word32 *data);
16
	static const char * StaticAlgorithmName() {return "MD5";}
17
};
18
267 by weidai
move MD2, MD4, MD5, PanamaHash, WAKE_CFB into the namespace 'Weak'
19
}
20
#ifndef CRYPTOPP_ENABLE_NAMESPACE_WEAK
21
using namespace Weak;
22
#ifdef __GNUC__
23
#warning "You may be using a weak algorithm that has been retained for backwards compatibility. Please define CRYPTOPP_ENABLE_NAMESPACE_WEAK and prepend the class name with 'Weak::' to remove this warning."
24
#else
25
#pragma message("You may be using a weak algorithm that has been retained for backwards compatibility. Please define CRYPTOPP_ENABLE_NAMESPACE_WEAK and prepend the class name with 'Weak::' to remove this warning.")
26
#endif
27
#endif
28
1 by weidai
Initial revision
29
NAMESPACE_END
30
31
#endif