clamav-devel/libclamav/md5.h
e3aaff8e
 /*
b5f780c2
  * This is an OpenSSL-compatible implementation of the RSA Data Security,
20db8070
  * Inc. MD5 Message-Digest Algorithm (RFC 1321).
335d1663
  *
b5f780c2
  * Written by Solar Designer <solar at openwall.com> in 2001, and placed
20db8070
  * in the public domain.  There's absolutely no warranty.
  *
  * See md5.c for more information.
e3aaff8e
  */
 
335d1663
 #ifndef __MD5_H
 #define __MD5_H
e3aaff8e
 
b5f780c2
 /* Any 32-bit or wider unsigned integer data type will do */
20db8070
 typedef unsigned int MD5_u32plus;
e3aaff8e
 
b5f780c2
 typedef struct {
 	MD5_u32plus lo, hi;
 	MD5_u32plus a, b, c, d;
 	unsigned char buffer[64];
 	MD5_u32plus block[16];
 } MD5_CTX;
e3aaff8e
 
b5f780c2
 extern void MD5_Init(MD5_CTX *ctx);
fc83da82
 extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size);
b5f780c2
 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
e3aaff8e
 
335d1663
 #endif