md5.h 312 B

123456789101112
  1. #ifndef __MD5_H
  2. #define __MD5_H
  3. #include <stdint.h>
  4. typedef struct {
  5. uint32_t state[4];
  6. uint32_t count[2];
  7. uint8_t buffer[64];
  8. } MD5_CTX;
  9. void MD5_Init(MD5_CTX *ctx);
  10. void MD5_Update(MD5_CTX *ctx, const uint8_t *input, uint32_t inputLen);
  11. void MD5_Final(uint8_t *digest, MD5_CTX *ctx);
  12. #endif /* __MD5_H */