GNU libmicrohttpd 1.0.2
|
Wrapper declarations for MD5 calculation performed by TLS library. More...
Go to the source code of this file.
Data Structures | |
struct | Md5CtxExt |
Macros | |
#define | MD5_DIGEST_SIZE (16) |
#define | MHD_MD5_HAS_EXT_ERROR 1 |
#define | MHD_MD5_HAS_INIT_ONE_TIME 1 |
#define | MHD_MD5_HAS_FINISH_RESET 1 |
#define | MHD_MD5_HAS_DEINIT 1 |
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 declarations for MD5 calculation performed by TLS library.
Definition in file md5_ext.h.
#define MD5_DIGEST_SIZE (16) |
#define MHD_MD5_HAS_DEINIT 1 |
Indicates that MHD_MD5_deinit() function is present
#define MHD_MD5_HAS_EXT_ERROR 1 |
#define MHD_MD5_HAS_FINISH_RESET 1 |
Indicates that MHD_MD5_finish_reset() function is available
#define MHD_MD5_HAS_INIT_ONE_TIME 1 |
Indicates that MHD_MD5_init_one_time() function is present.
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, Md5CtxExt::handle, and MD5_DIGEST_SIZE.
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 ) |
MD5 process portion of bytes.
ctx | the calculation context |
data | bytes to add to hash |
length | number of bytes in data |
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.