Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. #ifndef CRYPTOPP_MD4_H
  2. #define CRYPTOPP_MD4_H
  3. #include "iterhash.h"
  4. NAMESPACE_BEGIN(CryptoPP)
  5. namespace Weak1 {
  6. //! <a href="http://www.weidai.com/scan-mirror/md.html#MD4">MD4</a>
  7. /*! \warning MD4 is considered insecure, and should not be used
  8. unless you absolutely need it for compatibility. */
  9. class MD4 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD4>
  10. {
  11. public:
  12. static void InitState(HashWordType *state);
  13. static void Transform(word32 *digest, const word32 *data);
  14. static const char *StaticAlgorithmName() {return "MD4";}
  15. };
  16. }
  17. #if CRYPTOPP_ENABLE_NAMESPACE_WEAK >= 1
  18. namespace Weak {using namespace Weak1;} // import Weak1 into CryptoPP::Weak
  19. #else
  20. using namespace Weak1; // import Weak1 into CryptoPP with warning
  21. #ifdef __GNUC__
  22. #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."
  23. #else
  24. #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.")
  25. #endif
  26. #endif
  27. NAMESPACE_END
  28. #endif