version 0.1.6
[fms.git] / libs / shttpd / md5.h
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
11 #ifndef MD5_HEADER_INCLUDED
12 #define MD5_HEADER_INCLUDED
13
14 typedef struct MD5Context {
15         uint32_t        buf[4];
16         uint32_t        bits[2];
17         unsigned char   in[64];
18 } MD5_CTX;
19
20 extern void MD5Init(MD5_CTX *ctx);
21 extern void MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len);
22 extern void MD5Final(unsigned char digest[16], MD5_CTX *ctx);
23
24 #endif /*MD5_HEADER_INCLUDED */