1 /* The include file for both the MD4 and MD5 routines. */
3 #define MD4_DIGEST_LEN 16
4 #define MD5_DIGEST_LEN 16
5 #define MAX_DIGEST_LEN MD5_DIGEST_LEN
11 uint32 totalN
; /* bit count, lower 32 bits */
12 uint32 totalN2
; /* bit count, upper 32 bits */
13 uchar buffer
[CSUM_CHUNK
];
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 get_mdfour(uchar digest
[MD4_DIGEST_LEN
], const uchar
*in
, int length
);
22 void md5_begin(md_context
*ctx
);
23 void md5_update(md_context
*ctx
, const uchar
*input
, uint32 length
);
24 void md5_result(md_context
*ctx
, uchar digest
[MD5_DIGEST_LEN
]);
26 void get_md5(uchar digest
[MD5_DIGEST_LEN
], const uchar
*input
, int n
);