Lines Matching refs:md_ctx
1095 mbedtls_md_context_t md_ctx; in mgf_mask() local
1097 mbedtls_md_init(&md_ctx); in mgf_mask()
1103 mbedtls_md_init(&md_ctx); in mgf_mask()
1104 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 0)) != 0) { in mgf_mask()
1131 if ((ret = mbedtls_md_starts(&md_ctx)) != 0) { in mgf_mask()
1134 if ((ret = mbedtls_md_update(&md_ctx, src, slen)) != 0) { in mgf_mask()
1137 if ((ret = mbedtls_md_update(&md_ctx, counter, 4)) != 0) { in mgf_mask()
1140 if ((ret = mbedtls_md_finish(&md_ctx, mask)) != 0) { in mgf_mask()
1171 mbedtls_md_free(&md_ctx); in mgf_mask()
1198 mbedtls_md_context_t md_ctx; in hash_mprime() local
1206 mbedtls_md_init(&md_ctx); in hash_mprime()
1207 if ((ret = mbedtls_md_setup(&md_ctx, md_info, 0)) != 0) { in hash_mprime()
1210 if ((ret = mbedtls_md_starts(&md_ctx)) != 0) { in hash_mprime()
1213 if ((ret = mbedtls_md_update(&md_ctx, zeros, sizeof(zeros))) != 0) { in hash_mprime()
1216 if ((ret = mbedtls_md_update(&md_ctx, hash, hlen)) != 0) { in hash_mprime()
1219 if ((ret = mbedtls_md_update(&md_ctx, salt, slen)) != 0) { in hash_mprime()
1222 if ((ret = mbedtls_md_finish(&md_ctx, out)) != 0) { in hash_mprime()
1227 mbedtls_md_free(&md_ctx); in hash_mprime()