Lines Matching refs:md_ctx
100 EVP_MD_CTX *md_ctx = NULL; in sig_gen() local
108 || !TEST_ptr(md_ctx = EVP_MD_CTX_new()) in sig_gen()
109 || !TEST_int_eq(EVP_DigestSignInit_ex(md_ctx, NULL, digest_name, libctx, in sig_gen()
111 || !TEST_int_gt(EVP_DigestSign(md_ctx, sig, &sig_len, msg, msg_len), 0)) in sig_gen()
119 EVP_MD_CTX_free(md_ctx); in sig_gen()
305 EVP_MD_CTX *md_ctx = NULL; in ecdsa_sigver_test() local
326 || !TEST_ptr(md_ctx = EVP_MD_CTX_new()) in ecdsa_sigver_test()
327 || !TEST_true(EVP_DigestVerifyInit_ex(md_ctx, NULL, tst->digest_alg, in ecdsa_sigver_test()
329 || !TEST_ptr(pkey_ctx = EVP_MD_CTX_get_pkey_ctx(md_ctx)) in ecdsa_sigver_test()
331 || !TEST_int_eq(EVP_DigestVerify(md_ctx, sig, sig_len, in ecdsa_sigver_test()
345 EVP_MD_CTX_free(md_ctx); in ecdsa_sigver_test()
1452 EVP_MD_CTX *md_ctx = NULL; in rsa_sigver_test() local
1474 || !TEST_ptr(md_ctx = EVP_MD_CTX_new()) in rsa_sigver_test()
1475 || !TEST_true(EVP_DigestVerifyInit_ex(md_ctx, &pkey_ctx, in rsa_sigver_test()
1480 || !TEST_int_eq(EVP_DigestVerify(md_ctx, tst->sig, tst->sig_len, in rsa_sigver_test()
1491 EVP_MD_CTX_free(md_ctx); in rsa_sigver_test()