Source code of Windows XP (NT5)
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.

48 lines
1.4 KiB

  1. /* MD5.H - header file for MD5C.C
  2. */
  3. /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
  4. rights reserved.
  5. License to copy and use this software is granted provided that it
  6. is identified as the "RSA Data Security, Inc. MD5 Message-Digest
  7. Algorithm" in all material mentioning or referencing this software
  8. or this function.
  9. License is also granted to make and use derivative works provided
  10. that such works are identified as "derived from the RSA Data
  11. Security, Inc. MD5 Message-Digest Algorithm" in all material
  12. mentioning or referencing the derived work.
  13. RSA Data Security, Inc. makes no representations concerning either
  14. the merchantability of this software or the suitability of this
  15. software for any particular purpose. It is provided "as is"
  16. without express or implied warranty of any kind.
  17. These notices must be retained in any copies of any part of this
  18. documentation and/or software.
  19. */
  20. /* MD5 context. */
  21. typedef struct {
  22. unsigned int state[4]; /* state (ABCD) */
  23. unsigned int count[2]; /* number of bits, modulo 2^64 (lsb first) */
  24. unsigned char buffer[64]; /* input buffer */
  25. } MD5_CTX;
  26. #if defined(__cplusplus)
  27. extern "C"
  28. {
  29. #endif // (__cplusplus)
  30. void MD5Init (MD5_CTX *);
  31. void MD5Update (MD5_CTX *, unsigned char *, unsigned int);
  32. void MD5Final (unsigned char [16], MD5_CTX *);
  33. #if defined(__cplusplus)
  34. }
  35. #endif // (__cplusplus)
  36. // [EOF]