From b21162cf8e06f40baa1f58be6a8c17435cebc34d Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 Oct 2002 17:31:41 +0000 Subject: Initial revision git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@2 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- md4.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 md4.h (limited to 'md4.h') diff --git a/md4.h b/md4.h new file mode 100644 index 0000000..22a7ab8 --- /dev/null +++ b/md4.h @@ -0,0 +1,25 @@ +#ifndef CRYPTOPP_MD4_H +#define CRYPTOPP_MD4_H + +#include "iterhash.h" + +NAMESPACE_BEGIN(CryptoPP) + +//! MD4 +/*! \warning MD4 is considered insecure, and should not be used + unless you absolutely need compatibility with a broken product. */ +class MD4 : public IteratedHashWithStaticTransform +{ +public: + enum {DIGESTSIZE = 16}; + MD4() : IteratedHashWithStaticTransform(DIGESTSIZE) {Init();} + static void Transform(word32 *digest, const word32 *data); + static const char *StaticAlgorithmName() {return "MD4";} + +protected: + void Init(); +}; + +NAMESPACE_END + +#endif -- cgit v1.2.1