lighttpd 1.4.x https://www.lighttpd.net/
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.

52 lines
1.5 KiB

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