27 #ifndef MBEDTLS_MD_WRAP_H
28 #define MBEDTLS_MD_WRAP_H
30 #if !defined(MBEDTLS_CONFIG_FILE)
33 #include MBEDTLS_CONFIG_FILE
64 void (*
update_func)(
void *ctx,
const unsigned char *input,
size_t ilen );
71 unsigned char *output );
74 void * (*ctx_alloc_func)( void );
86 #if defined(MBEDTLS_MD2_C)
89 #if defined(MBEDTLS_MD4_C)
92 #if defined(MBEDTLS_MD5_C)
95 #if defined(MBEDTLS_RIPEMD160_C)
98 #if defined(MBEDTLS_SHA1_C)
101 #if defined(MBEDTLS_SHA256_C)
105 #if defined(MBEDTLS_SHA512_C)
int size
Output length of the digest function in bytes.
void(* clone_func)(void *dst, const void *src)
Clone state from a context.
void(* update_func)(void *ctx, const unsigned char *input, size_t ilen)
Digest update function.
Compatibility names (set of defines)
const char * name
Name of the message digest.
void(* ctx_free_func)(void *ctx)
Free the given context.
void(* digest_func)(const unsigned char *input, size_t ilen, unsigned char *output)
Generic digest function.
Generic message digest wrapper.
Message digest information.
void(* finish_func)(void *ctx, unsigned char *output)
Digest finalisation function.
int block_size
Block length of the digest function in bytes.
void(* process_func)(void *ctx, const unsigned char *input)
Internal use only.
void(* starts_func)(void *ctx)
Digest initialisation function.
mbedtls_md_type_t type
Digest identifier.