md5.h 714 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2004-2005 Sergey Lyubka <valenok@gmail.com>
  3. * All rights reserved
  4. *
  5. * "THE BEER-WARE LICENSE" (Revision 42):
  6. * Sergey Lyubka wrote this file. As long as you retain this notice you
  7. * can do whatever you want with this stuff. If we meet some day, and you think
  8. * this stuff is worth it, you can buy me a beer in return.
  9. */
  10. #ifndef MD5_HEADER_INCLUDED
  11. #define MD5_HEADER_INCLUDED
  12. typedef struct MD5Context {
  13. uint32_t buf[4];
  14. uint32_t bits[2];
  15. unsigned char in[64];
  16. } MD5_CTX;
  17. extern void MD5Init(MD5_CTX *ctx);
  18. extern void MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len);
  19. extern void MD5Final(unsigned char digest[16], MD5_CTX *ctx);
  20. #endif /*MD5_HEADER_INCLUDED */