28 #ifndef MBEDTLS_MD_WRAP_H
29 #define MBEDTLS_MD_WRAP_H
31 #if !defined(MBEDTLS_CONFIG_FILE)
34 #include MBEDTLS_CONFIG_FILE
65 void (*
update_func)(
void *ctx,
const unsigned char *input,
size_t ilen );
72 unsigned char *output );
75 void * (*ctx_alloc_func)( void );
87 #if defined(MBEDTLS_MD2_C)
90 #if defined(MBEDTLS_MD4_C)
93 #if defined(MBEDTLS_MD5_C)
96 #if defined(MBEDTLS_RIPEMD160_C)
99 #if defined(MBEDTLS_SHA1_C)
102 #if defined(MBEDTLS_SHA256_C)
106 #if defined(MBEDTLS_SHA512_C)
void(* ctx_free_func)(void *ctx)
Free the given context.
const mbedtls_md_info_t mbedtls_sha512_info
const mbedtls_md_info_t mbedtls_sha256_info
int size
Output length of the digest function in bytes.
const mbedtls_md_info_t mbedtls_sha1_info
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.
Compatibility names (set of defines)
const char * name
Name of the message digest.
const mbedtls_md_info_t mbedtls_sha224_info
void(* digest_func)(const unsigned char *input, size_t ilen, unsigned char *output)
Generic digest function.
const mbedtls_md_info_t mbedtls_sha384_info
void(* starts_func)(void *ctx)
Digest initialisation function.
void(* process_func)(void *ctx, const unsigned char *input)
Internal use only.
const mbedtls_md_info_t mbedtls_md5_info
const mbedtls_md_info_t mbedtls_ripemd160_info
void(* clone_func)(void *dst, const void *src)
Clone state from a context.
Message digest information.
int block_size
Block length of the digest function in bytes.
mbedtls_md_type_t type
Digest identifier.