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) |
MD4 final digest. | |
void | md4 (unsigned char *input, int ilen, unsigned char *output) |
Output = MD4( input buffer ). | |
int | md4_file (char *path, unsigned char *output) |
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) |
MD4 HMAC final digest. | |
void | md4_hmac (unsigned char *key, int keylen, unsigned char *input, int ilen, unsigned char *output) |
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 | |||
) |
Output = MD4( input buffer ).
input | buffer holding the data | |
ilen | length of the input data | |
output | MD4 checksum result |
Definition at line 259 of file md4.c.
References md4_finish(), md4_starts(), and md4_update().
Referenced by main(), and x509_hash().
int md4_file | ( | char * | path, | |
unsigned char * | output | |||
) |
Output = MD4( file contents ).
path | input file name | |
output | MD4 checksum result |
Definition at line 274 of file md4.c.
References f, md4_finish(), md4_starts(), and md4_update().
void md4_finish | ( | md4_context * | ctx, | |
unsigned char * | output | |||
) |
MD4 final digest.
ctx | MD4 context | |
output | MD4 checksum result |
Definition at line 231 of file md4.c.
References md4_padding, md4_update(), PUT_UINT32_LE, md4_context::state, and md4_context::total.
Referenced by md4(), md4_file(), and md4_hmac_finish().
void md4_hmac | ( | unsigned char * | key, | |
int | keylen, | |||
unsigned char * | input, | |||
int | ilen, | |||
unsigned char * | output | |||
) |
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 |
Definition at line 354 of file md4.c.
References md4_hmac_finish(), md4_hmac_starts(), and md4_hmac_update().
void md4_hmac_finish | ( | md4_context * | ctx, | |
unsigned char * | output | |||
) |
MD4 HMAC final digest.
ctx | HMAC context | |
output | MD4 HMAC checksum result |
Definition at line 338 of file md4.c.
References md4_finish(), md4_starts(), md4_update(), and md4_context::opad.
Referenced by md4_hmac().
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 |
Definition at line 306 of file md4.c.
References md4_context::ipad, md4_starts(), md4_update(), and md4_context::opad.
Referenced by md4_hmac().
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 |
Definition at line 329 of file md4.c.
References md4_update().
Referenced by md4_hmac().
void md4_starts | ( | md4_context * | ctx | ) |
MD4 context setup.
ctx | context to be initialized |
Definition at line 62 of file md4.c.
References md4_context::state, and md4_context::total.
Referenced by md4(), md4_file(), md4_hmac_finish(), and md4_hmac_starts().
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 |
Definition at line 179 of file md4.c.
References md4_context::buffer, md4_process(), and md4_context::total.
Referenced by md4(), md4_file(), md4_finish(), md4_hmac_finish(), md4_hmac_starts(), and md4_hmac_update().