5 ** Copyright 1998 - 2001 Double Precision, Inc.
6 ** See COPYING for distribution information.
10 ** RFC 1321 MD5 Message digest calculation.
12 ** Returns a pointer to a sixteen-byte message digest.
20 #include "md5/config.h"
24 #include <sys/types.h>
27 #define MD5_DIGEST_SIZE 16
28 #define MD5_BLOCK_SIZE 64
30 typedef unsigned char MD5_DIGEST
[MD5_DIGEST_SIZE
];
38 unsigned char blk
[MD5_BLOCK_SIZE
];
42 void md5_context_init(struct MD5_CONTEXT
*);
43 void md5_context_hash(struct MD5_CONTEXT
*,
44 const unsigned char[MD5_BLOCK_SIZE
]);
45 void md5_context_hashstream(struct MD5_CONTEXT
*, const void *, unsigned);
46 void md5_context_endstream(struct MD5_CONTEXT
*, unsigned long);
47 void md5_context_digest(struct MD5_CONTEXT
*, MD5_DIGEST
);
49 void md5_context_restore(struct MD5_CONTEXT
*, const MD5_DIGEST
);
53 void md5_digest(const void *msg
, unsigned int len
, MD5_DIGEST
);
55 char *md5_crypt_redhat(const char *, const char *);
56 #define md5_crypt md5_crypt_redhat
58 const char *md5_hash_courier(const char *);
59 const char *md5_hash_raw(const char *);