Lines Matching refs:md_ctx

76     size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info );  in mbedtls_hmac_drbg_update()
84 mbedtls_md_hmac_reset( &ctx->md_ctx ); in mbedtls_hmac_drbg_update()
85 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_update()
86 mbedtls_md_hmac_update( &ctx->md_ctx, sep, 1 ); in mbedtls_hmac_drbg_update()
88 mbedtls_md_hmac_update( &ctx->md_ctx, additional, add_len ); in mbedtls_hmac_drbg_update()
89 mbedtls_md_hmac_finish( &ctx->md_ctx, K ); in mbedtls_hmac_drbg_update()
92 mbedtls_md_hmac_starts( &ctx->md_ctx, K, md_len ); in mbedtls_hmac_drbg_update()
93 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_update()
94 mbedtls_md_hmac_finish( &ctx->md_ctx, ctx->V ); in mbedtls_hmac_drbg_update()
107 if( ( ret = mbedtls_md_setup( &ctx->md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_hmac_drbg_seed_buf()
115 mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, mbedtls_md_get_size( md_info ) ); in mbedtls_hmac_drbg_seed_buf()
177 if( ( ret = mbedtls_md_setup( &ctx->md_ctx, md_info, 1 ) ) != 0 ) in mbedtls_hmac_drbg_seed()
187 mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, md_size ); in mbedtls_hmac_drbg_seed()
255 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_random_with_add()
287 mbedtls_md_hmac_reset( &ctx->md_ctx ); in mbedtls_hmac_drbg_random_with_add()
288 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_random_with_add()
289 mbedtls_md_hmac_finish( &ctx->md_ctx, ctx->V ); in mbedtls_hmac_drbg_random_with_add()
340 mbedtls_md_free( &ctx->md_ctx ); in mbedtls_hmac_drbg_free()