Lines Matching refs:md_ctx

191     if( ctx->md_ctx != NULL )  in mbedtls_md_free()
192 ctx->md_info->ctx_free_func( ctx->md_ctx ); in mbedtls_md_free()
213 dst->md_info->clone_func( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
230 if( ( ctx->md_ctx = md_info->ctx_alloc_func() ) == NULL ) in mbedtls_md_setup()
238 md_info->ctx_free_func( ctx->md_ctx ); in mbedtls_md_setup()
253 ctx->md_info->starts_func( ctx->md_ctx ); in mbedtls_md_starts()
263 ctx->md_info->update_func( ctx->md_ctx, input, ilen ); in mbedtls_md_update()
273 ctx->md_info->finish_func( ctx->md_ctx, output ); in mbedtls_md_finish()
309 md_info->starts_func( ctx.md_ctx ); in mbedtls_md_file()
312 md_info->update_func( ctx.md_ctx, buf, n ); in mbedtls_md_file()
320 md_info->finish_func( ctx.md_ctx, output ); in mbedtls_md_file()
341 ctx->md_info->starts_func( ctx->md_ctx ); in mbedtls_md_hmac_starts()
342 ctx->md_info->update_func( ctx->md_ctx, key, keylen ); in mbedtls_md_hmac_starts()
343 ctx->md_info->finish_func( ctx->md_ctx, sum ); in mbedtls_md_hmac_starts()
363 ctx->md_info->starts_func( ctx->md_ctx ); in mbedtls_md_hmac_starts()
364 ctx->md_info->update_func( ctx->md_ctx, ipad, ctx->md_info->block_size ); in mbedtls_md_hmac_starts()
374 ctx->md_info->update_func( ctx->md_ctx, input, ilen ); in mbedtls_md_hmac_update()
389 ctx->md_info->finish_func( ctx->md_ctx, tmp ); in mbedtls_md_hmac_finish()
390 ctx->md_info->starts_func( ctx->md_ctx ); in mbedtls_md_hmac_finish()
391 ctx->md_info->update_func( ctx->md_ctx, opad, ctx->md_info->block_size ); in mbedtls_md_hmac_finish()
392 ctx->md_info->update_func( ctx->md_ctx, tmp, ctx->md_info->size ); in mbedtls_md_hmac_finish()
393 ctx->md_info->finish_func( ctx->md_ctx, output ); in mbedtls_md_hmac_finish()
407 ctx->md_info->starts_func( ctx->md_ctx ); in mbedtls_md_hmac_reset()
408 ctx->md_info->update_func( ctx->md_ctx, ipad, ctx->md_info->block_size ); in mbedtls_md_hmac_reset()
442 ctx->md_info->process_func( ctx->md_ctx, data ); in mbedtls_md_process()