md5.h 519 B

123456789101112131415161718192021
  1. #ifndef MD5_H
  2. #define MD5_H
  3. #include "compiler.h"
  4. #define MD5_HASHBYTES 16
  5. typedef struct MD5Context {
  6. uint32_t buf[4];
  7. uint32_t bits[2];
  8. unsigned char in[64];
  9. } MD5_CTX;
  10. extern void MD5Init(MD5_CTX *context);
  11. extern void MD5Update(MD5_CTX *context, unsigned char const *buf,
  12. unsigned len);
  13. extern void MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
  14. extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
  15. extern char * MD5End(MD5_CTX *, char *);
  16. #endif /* !MD5_H */