md5.h 400 B

1234567891011121314151617181920
  1. #ifndef FWCUTTER_MD5_H_
  2. #define FWCUTTER_MD5_H_
  3. #include <stdint.h>
  4. struct MD5Context {
  5. uint32_t buf[4];
  6. uint32_t bits[2];
  7. union _u {
  8. unsigned char in[64];
  9. uint32_t in_u32[16];
  10. } u;
  11. };
  12. void MD5Init(struct MD5Context *ctx);
  13. void MD5Update(struct MD5Context *ctx, unsigned char *buf, unsigned len);
  14. void MD5Final(unsigned char *digest, struct MD5Context *ctx);
  15. #endif /* FWCUTTER_MD5_H_ */