diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
commit | f278895908e663a6a5a2c1f63e5523c5004f5d20 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /md4.h | |
parent | e43f74604744291d3a99b8bfe81d94af4ba6abbd (diff) | |
download | cryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz |
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'md4.h')
-rw-r--r-- | md4.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -8,16 +8,12 @@ NAMESPACE_BEGIN(CryptoPP) //! <a href="http://www.weidai.com/scan-mirror/md.html#MD4">MD4</a> /*! \warning MD4 is considered insecure, and should not be used unless you absolutely need compatibility with a broken product. */ -class MD4 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, MD4> +class MD4 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD4> { public: - enum {DIGESTSIZE = 16}; - MD4() : IteratedHashWithStaticTransform<word32, LittleEndian, 64, MD4>(DIGESTSIZE) {Init();} + static void InitState(HashWordType *state); static void Transform(word32 *digest, const word32 *data); static const char *StaticAlgorithmName() {return "MD4";} - -protected: - void Init(); }; NAMESPACE_END |