mirror of the now-defunct rocklinux.org
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.

30 lines
541 B

  1. #ifndef MD5_H
  2. #define MD5_H
  3. #include <sys/types.h>
  4. #ifdef __dietlibc__
  5. typedef uint32_t uint32;
  6. #else
  7. typedef u_int32_t uint32;
  8. #endif
  9. struct MD5Context {
  10. uint32 buf[4];
  11. uint32 bits[2];
  12. unsigned char in[64];
  13. int doByteReverse;
  14. };
  15. void MD5_Init(struct MD5Context *);
  16. void MD5_Update(struct MD5Context *, unsigned const char *, unsigned);
  17. void MD5_Final(unsigned char digest[16], struct MD5Context *);
  18. /*
  19. * This is needed to make RSAREF happy on some MS-DOS compilers.
  20. */
  21. typedef struct MD5Context MD5_CTX;
  22. #endif /* MD5_H */