Message digest information. More...
#include <md.h>
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. | |
void(* | process_func )(void *ctx, const unsigned char *input) |
Internal use only. |
Message digest information.
Allows message digest functions to be called in a generic way.
Definition at line 73 of file md.h.
void*(* md_info_t::ctx_alloc_func)(void) |
Allocate a new context.
Referenced by md_init_ctx().
void(* md_info_t::ctx_free_func)(void *ctx) |
Free the given context.
Referenced by md_free_ctx().
void(* md_info_t::digest_func)(const unsigned char *input, size_t ilen, unsigned char *output) |
Generic digest function.
Referenced by md().
int(* md_info_t::file_func)(const char *path, unsigned char *output) |
Generic file digest function.
Referenced by md_file().
void(* md_info_t::finish_func)(void *ctx, unsigned char *output) |
Digest finalisation function.
Referenced by md_finish().
void(* md_info_t::hmac_finish_func)(void *ctx, unsigned char *output) |
HMAC finalisation function.
Referenced by md_hmac_finish().
void(* md_info_t::hmac_func)(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char *output) |
Generic HMAC function.
Referenced by md_hmac().
void(* md_info_t::hmac_reset_func)(void *ctx) |
HMAC context reset function.
Referenced by md_hmac_reset().
void(* md_info_t::hmac_starts_func)(void *ctx, const unsigned char *key, size_t keylen) |
HMAC Initialisation function.
Referenced by md_hmac_starts().
void(* md_info_t::hmac_update_func)(void *ctx, const unsigned char *input, size_t ilen) |
HMAC update function.
Referenced by md_hmac_update().
const char* md_info_t::name |
void(* md_info_t::process_func)(void *ctx, const unsigned char *input) |
Internal use only.
Referenced by md_process().
int md_info_t::size |
Output length of the digest function.
Definition at line 81 of file md.h.
Referenced by md_get_size(), mgf_mask(), pk_hashlen_helper(), x509_crt_verify_child(), x509_crt_verify_top(), and x509_crt_verifycrl().
void(* md_info_t::starts_func)(void *ctx) |
Digest initialisation function.
Referenced by md_init_ctx(), and md_starts().
Digest identifier.
Definition at line 75 of file md.h.
Referenced by md_get_type(), and ssl_derive_keys().
void(* md_info_t::update_func)(void *ctx, const unsigned char *input, size_t ilen) |
Digest update function.
Referenced by md_update().