GNU libmicrohttpd 1.0.1
|
Wrapper for MD5 calculation performed by TLS library. More...
Go to the source code of this file.
Functions | |
void | MHD_MD5_init_one_time (struct Md5CtxExt *ctx) |
void | MHD_MD5_update (struct Md5CtxExt *ctx, const uint8_t *data, size_t length) |
void | MHD_MD5_finish_reset (struct Md5CtxExt *ctx, uint8_t digest[MD5_DIGEST_SIZE]) |
void | MHD_MD5_deinit (struct Md5CtxExt *ctx) |
Wrapper for MD5 calculation performed by TLS library.
Definition in file md5_ext.c.
void MHD_MD5_deinit | ( | struct Md5CtxExt * | ctx | ) |
Free allocated resources.
ctx | the calculation context |
Definition at line 98 of file md5_ext.c.
References Md5CtxExt::handle, and NULL.
void MHD_MD5_finish_reset | ( | struct Md5CtxExt * | ctx, |
uint8_t | digest[MD5_DIGEST_SIZE] | ||
) |
Finalise MD5 calculation, return digest, reset hash calculation.
ctx | the calculation context | |
[out] | digest | set to the hash, must be MD5_DIGEST_SIZE bytes |
Definition at line 84 of file md5_ext.c.
References Md5CtxExt::ext_error, and Md5CtxExt::handle.
void MHD_MD5_init_one_time | ( | struct Md5CtxExt * | ctx | ) |
Initialise structure for MD5 calculation, allocate resources.
This function must not be called more than one time for ctx.
ctx | the calculation context |
Definition at line 39 of file md5_ext.c.
References Md5CtxExt::ext_error, Md5CtxExt::handle, mhd_assert, and NULL.
void MHD_MD5_update | ( | struct Md5CtxExt * | ctx, |
const uint8_t * | data, | ||
size_t | length | ||
) |
Process portion of bytes.
ctx | the calculation context |
data | bytes to add to hash |
length | number of bytes in data |
Definition at line 68 of file md5_ext.c.
References data, Md5CtxExt::ext_error, and Md5CtxExt::handle.