Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# md4.h

    00001 #ifndef CRYPTOPP_MD4_H
    00002 #define CRYPTOPP_MD4_H
    00003
    00004 #include "iterhash.h"
    00005
    00006 NAMESPACE_BEGIN(CryptoPP)
    00007
    00008 //! <a href="http://www.weidai.com/scan-mirror/md.html#MD4">MD4</a>
    00009 /*! \warning MD4 is considered insecure, and should not be used
    00010         unless you absolutely need compatibility with a broken product. */
    00011 class MD4 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, MD4>
    00012 {
    00013 public:
    00014         enum {DIGESTSIZE = 16};
    00015         MD4() : IteratedHashWithStaticTransform<word32, LittleEndian, 64, MD4>(DIGESTSIZE) {Init();}
    00016         static void Transform(word32 *digest, const word32 *data);
    00017         static const char *StaticAlgorithmName() {return "MD4";}
    00018
    00019 protected:
    00020         void Init();
    00021 };
    00022
    00023 NAMESPACE_END
    00024
    00025 #endif