Lines Matching refs:md_ctx
6187 mbedtls_md_context_t md_ctx; in tls_prf_generic() local
6190 mbedtls_md_init(&md_ctx); in tls_prf_generic()
6213 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 1)) != 0) { in tls_prf_generic()
6217 ret = mbedtls_md_hmac_starts(&md_ctx, secret, slen); in tls_prf_generic()
6221 ret = mbedtls_md_hmac_update(&md_ctx, tmp + md_len, nb); in tls_prf_generic()
6225 ret = mbedtls_md_hmac_finish(&md_ctx, tmp); in tls_prf_generic()
6231 ret = mbedtls_md_hmac_reset(&md_ctx); in tls_prf_generic()
6235 ret = mbedtls_md_hmac_update(&md_ctx, tmp, md_len + nb); in tls_prf_generic()
6239 ret = mbedtls_md_hmac_finish(&md_ctx, h_i); in tls_prf_generic()
6244 ret = mbedtls_md_hmac_reset(&md_ctx); in tls_prf_generic()
6248 ret = mbedtls_md_hmac_update(&md_ctx, tmp, md_len); in tls_prf_generic()
6252 ret = mbedtls_md_hmac_finish(&md_ctx, tmp); in tls_prf_generic()
6265 mbedtls_md_free(&md_ctx); in tls_prf_generic()