mbed TLS  Version 2.9.0
SSL/TLS Library for the Embedded Space
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mbedtls_md_info_t Struct Reference

Message digest information. More...

Data Fields

mbedtls_md_type_t type
 Digest identifier.
 
const char * name
 Name of the message digest.
 
int size
 Output length of the digest function in bytes.
 
int block_size
 Block length of the digest function in bytes.
 
int(* starts_func )(void *ctx)
 Digest initialisation function.
 
int(* update_func )(void *ctx, const unsigned char *input, size_t ilen)
 Digest update function.
 
int(* finish_func )(void *ctx, unsigned char *output)
 Digest finalisation function.
 
int(* digest_func )(const unsigned char *input, size_t ilen, unsigned char *output)
 Generic digest function.
 
void *(* ctx_alloc_func )(void)
 Allocate a new context.
 
void(* ctx_free_func )(void *ctx)
 Free the given context.
 
void(* clone_func )(void *dst, const void *src)
 Clone state from a context.
 
int(* process_func )(void *ctx, const unsigned char *input)
 Internal use only.
 

Description

Message digest information.

Opaque struct defined in md_internal.h.

Allows message digest functions to be called in a generic way.