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) const mbedtls_md_info_t mbedtls_sha512_info
const mbedtls_md_info_t mbedtls_sha256_info
const mbedtls_md_info_t mbedtls_md4_info
int size
Output length of the digest function in bytes.
void(* clone_func)(void *dst, const void *src)
Clone state from a context.
const mbedtls_md_info_t mbedtls_sha1_info
void(* update_func)(void *ctx, const unsigned char *input, size_t ilen)
Digest update function.
Configuration options (set of defines)
const mbedtls_md_info_t mbedtls_md2_info
const char * name
Name of the message digest.
const mbedtls_md_info_t mbedtls_sha224_info
void(* ctx_free_func)(void *ctx)
Free the given context.
const mbedtls_md_info_t mbedtls_sha384_info
void(* digest_func)(const unsigned char *input, size_t ilen, unsigned char *output)
Generic digest function.
const mbedtls_md_info_t mbedtls_md5_info
const mbedtls_md_info_t mbedtls_ripemd160_info
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.