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.

33 lines
1.2 KiB

  1. #ifndef CRYPTOPP_MD5_H
  2. #define CRYPTOPP_MD5_H
  3. #include "iterhash.h"
  4. NAMESPACE_BEGIN(CryptoPP)
  5. namespace Weak1 {
  6. //! <a href="http://www.cryptolounge.org/wiki/MD5">MD5</a>
  7. class MD5 : public IteratedHashWithStaticTransform<word32, LittleEndian, 64, 16, MD5>
  8. {
  9. public:
  10. static void InitState(HashWordType *state);
  11. static void Transform(word32 *digest, const word32 *data);
  12. static const char * StaticAlgorithmName() {return "MD5";}
  13. };
  14. }
  15. #if CRYPTOPP_ENABLE_NAMESPACE_WEAK >= 1
  16. namespace Weak {using namespace Weak1;} // import Weak1 into CryptoPP::Weak
  17. #else
  18. using namespace Weak1; // import Weak1 into CryptoPP with warning
  19. #ifdef __GNUC__
  20. #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."
  21. #else
  22. #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.")
  23. #endif
  24. #endif
  25. NAMESPACE_END
  26. #endif