md5.h 578 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 1995 Colin Plumb. All rights reserved.
  3. * For licensing and other legal details, see the file legal.c.
  4. */
  5. #ifndef MD5_H
  6. #define MD5_H
  7. #include <stddef.h>
  8. #include "usuals.h"
  9. struct MD5Context {
  10. word32 buf[4];
  11. word32 bytes[2];
  12. word32 in[16];
  13. };
  14. void MD5Init(struct MD5Context *context);
  15. void MD5Update(struct MD5Context *context, byte const *buf, size_t len);
  16. void MD5Final(unsigned char digest[16], struct MD5Context *context);
  17. void MD5Transform(word32 buf[4], word32 const in[16]);
  18. void byteSwap(word32 *buf, unsigned words);
  19. #endif /* !MD5_H */