Go to the source code of this file.
Data Structures | |
struct | md4_context |
MD4 context structure. More... | |
Functions | |
void | md4_starts (md4_context *ctx) |
MD4 context setup. | |
void | md4_update (md4_context *ctx, unsigned char *input, int ilen) |
MD4 process buffer. | |
void | md4_finish (md4_context *ctx, unsigned char output[16]) |
MD4 final digest. | |
void | md4 (unsigned char *input, int ilen, unsigned char output[16]) |
Output = MD4( input buffer ). | |
int | md4_file (char *path, unsigned char output[16]) |
Output = MD4( file contents ). | |
void | md4_hmac_starts (md4_context *ctx, unsigned char *key, int keylen) |
MD4 HMAC context setup. | |
void | md4_hmac_update (md4_context *ctx, unsigned char *input, int ilen) |
MD4 HMAC process buffer. | |
void | md4_hmac_finish (md4_context *ctx, unsigned char output[16]) |
MD4 HMAC final digest. | |
void | md4_hmac (unsigned char *key, int keylen, unsigned char *input, int ilen, unsigned char output[16]) |
Output = HMAC-MD4( hmac key, input buffer ). | |
int | md4_self_test (int verbose) |
Checkup routine. |
Definition in file md4.h.
void md4 | ( | unsigned char * | input, | |
int | ilen, | |||
unsigned char | output[16] | |||
) |
Output = MD4( input buffer ).
input | buffer holding the data | |
ilen | length of the input data | |
output | MD4 checksum result |
Referenced by main().
int md4_file | ( | char * | path, | |
unsigned char | output[16] | |||
) |
Output = MD4( file contents ).
path | input file name | |
output | MD4 checksum result |
void md4_finish | ( | md4_context * | ctx, | |
unsigned char | output[16] | |||
) |
MD4 final digest.
ctx | MD4 context | |
output | MD4 checksum result |
void md4_hmac | ( | unsigned char * | key, | |
int | keylen, | |||
unsigned char * | input, | |||
int | ilen, | |||
unsigned char | output[16] | |||
) |
Output = HMAC-MD4( hmac key, input buffer ).
key | HMAC secret key | |
keylen | length of the HMAC key | |
input | buffer holding the data | |
ilen | length of the input data | |
output | HMAC-MD4 result |
void md4_hmac_finish | ( | md4_context * | ctx, | |
unsigned char | output[16] | |||
) |
MD4 HMAC final digest.
ctx | HMAC context | |
output | MD4 HMAC checksum result |
void md4_hmac_starts | ( | md4_context * | ctx, | |
unsigned char * | key, | |||
int | keylen | |||
) |
MD4 HMAC context setup.
ctx | HMAC context to be initialized | |
key | HMAC secret key | |
keylen | length of the HMAC key |
void md4_hmac_update | ( | md4_context * | ctx, | |
unsigned char * | input, | |||
int | ilen | |||
) |
MD4 HMAC process buffer.
ctx | HMAC context | |
input | buffer holding the data | |
ilen | length of the input data |
void md4_starts | ( | md4_context * | ctx | ) |
MD4 context setup.
ctx | context to be initialized |
void md4_update | ( | md4_context * | ctx, | |
unsigned char * | input, | |||
int | ilen | |||
) |
MD4 process buffer.
ctx | MD4 context | |
input | buffer holding the data | |
ilen | length of the input data |