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

# ripemd.h

    00001 #ifndef CRYPTOPP_RIPEMD_H
    00002 #define CRYPTOPP_RIPEMD_H
    00003
    00004 #include "iterhash.h"
    00005
    00006 NAMESPACE_BEGIN(CryptoPP)
    00007
    00008 //! <a href="http://www.weidai.com/scan-mirror/md.html#RIPEMD-160">RIPEMD-160</a>
    00009 /*! Digest Length = 160 bits */
    00010 class RIPEMD160 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, RIPEMD160>
    00011 {
    00012 public:
    00013         enum {DIGESTSIZE = 20};
    00014         RIPEMD160() : IteratedHashWithStaticTransform<word32, LittleEndian, 64, RIPEMD160>(DIGESTSIZE) {Init();}
    00015         static void Transform(word32 *digest, const word32 *data);
    00016         static const char * StaticAlgorithmName() {return "RIPEMD-160";}
    00017
    00018 protected:
    00019         void Init();
    00020 };
    00021
    00022 NAMESPACE_END
    00023
    00024 #endif