| 1 |
|
| 2 |
|
| 3 |
#ifdef USE_OPENSSL |
| 4 |
#include <openssl/sha.h> |
| 5 |
#include <openssl/evp.h> |
| 6 |
#endif |
| 7 |
#include "md-defines.h" |
| 8 |
|
| 9 |
typedef struct { |
| 10 |
uint32 A, B, C, D; |
| 11 |
uint32 totalN; |
| 12 |
uint32 totalN2; |
| 13 |
uchar buffer[CSUM_CHUNK]; |
| 14 |
} md_context; |
| 15 |
|
| 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]); |
| 19 |
|
| 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]); |