mbedtls_md_context_t::md_info is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_md_context_t::md_info

mbedtls_md_context_t::md_info field

Information about the associated message digest.

Syntax

from md.h:88
const mbedtls_md_info_t *md_info;

References

LocationReferrerText
md.h:88
const mbedtls_md_info_t *md_info;
md.c:184mbedtls_md_free()
if( ctx == NULL || ctx->md_info == NULL )
md.c:188mbedtls_md_free()
ctx->md_info->ctx_free_func( ctx->md_ctx );
md.c:193mbedtls_md_free()
2 * ctx->md_info->block_size );
md.c:203mbedtls_md_clone()
if( dst == NULL || dst->md_info == NULL ||
md.c:204mbedtls_md_clone()
src == NULL || src->md_info == NULL ||
md.c:205mbedtls_md_clone()
dst->md_info != src->md_info )
md.c:210mbedtls_md_clone()
dst->md_info->clone_func( dst->md_ctx, src->md_ctx );
md.c:240mbedtls_md_setup()
ctx->md_info = md_info;
md.c:247mbedtls_md_starts()
if( ctx == NULL || ctx->md_info == NULL )
md.c:250mbedtls_md_starts()
return( ctx->md_info->starts_func( ctx->md_ctx ) );
md.c:255mbedtls_md_update()
if( ctx == NULL || ctx->md_info == NULL )
md.c:258mbedtls_md_update()
return( ctx->md_info->update_func( ctx->md_ctx, input, ilen ) );
md.c:263mbedtls_md_finish()
if( ctx == NULL || ctx->md_info == NULL )
md.c:266mbedtls_md_finish()
return( ctx->md_info->finish_func( ctx->md_ctx, output ) );
md.c:326mbedtls_md_hmac_starts()
if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL )
md.c:329mbedtls_md_hmac_starts()
if( keylen > (size_t) ctx->md_info->block_size )
md.c:331mbedtls_md_hmac_starts()
if( ( ret = ctx->md_info->starts_func( ctx->md_ctx ) ) != 0 )
md.c:333mbedtls_md_hmac_starts()
if( ( ret = ctx->md_info->update_func( ctx->md_ctx, key, keylen ) ) != 0 )
md.c:335mbedtls_md_hmac_starts()
if( ( ret = ctx->md_info->finish_func( ctx->md_ctx, sum ) ) != 0 )
md.c:338mbedtls_md_hmac_starts()
keylen = ctx->md_info->size;
md.c:343mbedtls_md_hmac_starts()
opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size;
md.c:345mbedtls_md_hmac_starts()
memset( ipad, 0x36, ctx->md_info->block_size );
md.c:346mbedtls_md_hmac_starts()
memset( opad, 0x5C, ctx->md_info->block_size );
md.c:354mbedtls_md_hmac_starts()
if( ( ret = ctx->md_info->starts_func( ctx->md_ctx ) ) != 0 )
md.c:356mbedtls_md_hmac_starts()
if( ( ret = ctx->md_info->update_func( ctx->md_ctx, ipad,
md.c:357mbedtls_md_hmac_starts()
ctx->md_info->block_size ) ) != 0 )
md.c:368mbedtls_md_hmac_update()
if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL )
md.c:371mbedtls_md_hmac_update()
return( ctx->md_info->update_func( ctx->md_ctx, input, ilen ) );
md.c:380mbedtls_md_hmac_finish()
if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL )
md.c:383mbedtls_md_hmac_finish()
opad = (unsigned char *) ctx->hmac_ctx + ctx->md_info->block_size;
md.c:385mbedtls_md_hmac_finish()
if( ( ret = ctx->md_info->finish_func( ctx->md_ctx, tmp ) ) != 0 )
md.c:387mbedtls_md_hmac_finish()
if( ( ret = ctx->md_info->starts_func( ctx->md_ctx ) ) != 0 )
md.c:389mbedtls_md_hmac_finish()
if( ( ret = ctx->md_info->update_func( ctx->md_ctx, opad,
md.c:390mbedtls_md_hmac_finish()
ctx->md_info->block_size ) ) != 0 )
md.c:392mbedtls_md_hmac_finish()
if( ( ret = ctx->md_info->update_func( ctx->md_ctx, tmp,
md.c:393mbedtls_md_hmac_finish()
ctx->md_info->size ) ) != 0 )
md.c:395mbedtls_md_hmac_finish()
return( ctx->md_info->finish_func( ctx->md_ctx, output ) );
md.c:403mbedtls_md_hmac_reset()
if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL )
md.c:408mbedtls_md_hmac_reset()
if( ( ret = ctx->md_info->starts_func( ctx->md_ctx ) ) != 0 )
md.c:410mbedtls_md_hmac_reset()
return( ctx->md_info->update_func( ctx->md_ctx, ipad,
md.c:411mbedtls_md_hmac_reset()
ctx->md_info->block_size ) );
md.c:445mbedtls_md_process()
if( ctx == NULL || ctx->md_info == NULL )
md.c:448mbedtls_md_process()
return( ctx->md_info->process_func( ctx->md_ctx, data ) );

Data Use

Functions writing mbedtls_md_context_t::md_info
Functions reading mbedtls_md_context_t::md_info
all items filtered out
mbedtls_md_context_t::md_info
Type of mbedtls_md_context_t::md_info
mbedtls_md_context_t::md_info
all items filtered out