Data Fields |
md_type_t | type |
| Digest identifier.
|
const char * | name |
| Name of the message digest.
|
int | size |
| Output length of the digest function.
|
void(* | starts_func )(void *ctx) |
| Digest initialisation function.
|
void(* | update_func )(void *ctx, const unsigned char *input, size_t ilen) |
| Digest update function.
|
void(* | finish_func )(void *ctx, unsigned char *output) |
| Digest finalisation function.
|
void(* | digest_func )(const unsigned char *input, size_t ilen, unsigned char *output) |
| Generic digest function.
|
int(* | file_func )(const char *path, unsigned char *output) |
| Generic file digest function.
|
void(* | hmac_starts_func )(void *ctx, const unsigned char *key, size_t keylen) |
| HMAC Initialisation function.
|
void(* | hmac_update_func )(void *ctx, const unsigned char *input, size_t ilen) |
| HMAC update function.
|
void(* | hmac_finish_func )(void *ctx, unsigned char *output) |
| HMAC finalisation function.
|
void(* | hmac_reset_func )(void *ctx) |
| HMAC context reset function.
|
void(* | hmac_func )(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char *output) |
| Generic HMAC function.
|
void *(* | ctx_alloc_func )(void) |
| Allocate a new context.
|
void(* | ctx_free_func )(void *ctx) |
| Free the given context.
|
Message digest information.
Allows message digest functions to be called in a generic way.
Definition at line 65 of file md.h.