Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:04

0001 #ifndef CRYPTOPP_MD4_H
0002 #define CRYPTOPP_MD4_H
0003 
0004 #include "iterhash.h"
0005 
0006 NAMESPACE_BEGIN(CryptoPP)
0007 
0008 namespace Weak1 {
0009 
0010 /// <a href="http://www.weidai.com/scan-mirror/md.html#MD4">MD4</a>

0011 /*! \warning MD4 is considered insecure, and should not be used

0012     unless you absolutely need it for compatibility. */
0013 class MD4 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD4>
0014 {
0015 public:
0016     static void InitState(HashWordType *state);
0017     static void Transform(word32 *digest, const word32 *data);
0018     CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "MD4";}
0019 };
0020 
0021 }
0022 #if CRYPTOPP_ENABLE_NAMESPACE_WEAK >= 1
0023 namespace Weak {using namespace Weak1;}     // import Weak1 into CryptoPP::Weak

0024 #else
0025 using namespace Weak1;  // import Weak1 into CryptoPP with warning

0026 #ifdef __GNUC__
0027 #warning "You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning."
0028 #else
0029 #pragma message("You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning.")
0030 #endif
0031 #endif
0032 
0033 NAMESPACE_END
0034 
0035 #endif