MD5.h 1.6 KB

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