support -X option in rpmmd2solv, make add_autopattern available in bindings
[platform/upstream/libsolv.git] / src / md5.h
1 /*
2  * This is an OpenSSL-compatible implementation of the RSA Data Security,
3  * Inc. MD5 Message-Digest Algorithm.
4  *
5  * Written by Solar Designer <solar@openwall.com> in 2001, and placed in
6  * the public domain.  See md5.c for more information.
7  */
8
9 /* Any 32-bit or wider unsigned integer data type will do */
10 typedef unsigned long MD5_u32plus;
11
12 typedef struct {
13         MD5_u32plus lo, hi;
14         MD5_u32plus a, b, c, d;
15         unsigned char buffer[64];
16         MD5_u32plus block[16];
17 } MD5_CTX;
18
19 extern void solv_MD5_Init(MD5_CTX *ctx);
20 extern void solv_MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
21 extern void solv_MD5_Final(unsigned char *result, MD5_CTX *ctx);