Fix version verification when "\|" doesn't work in sed.
[rsync.git] / lib / mdigest.h
blob9d52ef5f422f6684f45a9245b9106b30c931351f
1 /* The include file for both the MD4 and MD5 routines. */
3 #ifdef USE_OPENSSL
4 #include <openssl/sha.h>
5 #include <openssl/evp.h>
6 #endif
7 #include "md-defines.h"
9 typedef struct {
10 uint32 A, B, C, D;
11 uint32 totalN; /* bit count, lower 32 bits */
12 uint32 totalN2; /* bit count, upper 32 bits */
13 uchar buffer[CSUM_CHUNK];
14 } md_context;
16 void mdfour_begin(md_context *md);
17 void mdfour_update(md_context *md, const uchar *in, uint32 length);
18 void mdfour_result(md_context *md, uchar digest[MD4_DIGEST_LEN]);
20 void md5_begin(md_context *ctx);
21 void md5_update(md_context *ctx, const uchar *input, uint32 length);
22 void md5_result(md_context *ctx, uchar digest[MD5_DIGEST_LEN]);