Leaked source code of windows server 2003
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.

53 lines
1.8 KiB

  1. //***************************************************************************
  2. //
  3. // MD5.H
  4. //
  5. // MD5 Message Digest
  6. //
  7. // raymcc 21-Apr-97 Adapted Ron Rivest's source from RFC 1321.
  8. //
  9. // This implementation was checked against a reference suite
  10. // on 24-Apr-97. Do NOT ALTER the source code for any reason!
  11. //
  12. // ------------------------------------------------------------------
  13. //
  14. // Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
  15. // rights reserved.
  16. //
  17. // License to copy and use this software is granted provided that it
  18. // is identified as the "RSA Data Security, Inc. MD5 Message-Digest
  19. // Algorithm" in all material mentioning or referencing this software
  20. // or this function.
  21. //
  22. // License is also granted to make and use derivative works provided
  23. // that such works are identified as "derived from the RSA Data
  24. // Security, Inc. MD5 Message-Digest Algorithm" in all material
  25. // mentioning or referencing the derived work.
  26. //
  27. // RSA Data Security, Inc. makes no representations concerning either
  28. // the merchantability of this software or the suitability of this
  29. // software for any particular purpose. It is provided "as is"
  30. // without express or implied warranty of any kind.
  31. //
  32. //***************************************************************************
  33. #ifndef _MD5WBEM_H_
  34. #define _MD5WBEM_H_
  35. #include "corepol.h"
  36. class POLARITY MD5
  37. {
  38. public:
  39. static void Transform(
  40. IN LPVOID pInputValue, // Value to be digested
  41. IN UINT uValueLength, // Length of value, 0 is legal
  42. OUT BYTE MD5Buffer[16] // Receives the MD5 hash
  43. );
  44. static void ContinueTransform(
  45. IN LPVOID pInputValue,
  46. IN UINT uValueLength,
  47. IN OUT BYTE MD5Buffer[16]
  48. );
  49. };
  50. #endif