md5.h 379 B

1234567891011121314151617
  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. unsigned char in[64];
  8. };
  9. void MD5Init(struct MD5Context *ctx);
  10. void MD5Update(struct MD5Context *ctx, unsigned char *buf, unsigned len);
  11. void MD5Final(unsigned char *digest, struct MD5Context *ctx);
  12. #endif /* FWCUTTER_MD5_H_ */