00001 #ifndef CRYPTOPP_MD2_H
00002 #define CRYPTOPP_MD2_H
00003
00004 #include "cryptlib.h"
00005 #include "misc.h"
00006
00007 NAMESPACE_BEGIN(CryptoPP)
00008
00010
00011 class MD2 : public HashModule
00012 {
00013 public:
00014 MD2();
00015 void Update(const byte *input, unsigned int length);
00016 void Final(byte *hash);
00017 unsigned int DigestSize() const {return DIGESTSIZE;}
00018
00019 enum {DIGESTSIZE = 16};
00020
00021 private:
00022 void Transform();
00023 void Init();
00024 SecByteBlock buf;
00025 unsigned int len;
00026 };
00027
00028 NAMESPACE_END
00029
00030 #endif