Lines Matching refs:mdctx

103     EVP_MD_CTX *mdctx;  member
236 EVP_MD_CTX_free(ctx->mdctx); in ecdsa_setup_md()
251 ctx->mdctx = NULL; in ecdsa_setup_md()
372 return EVP_DigestUpdate(ctx->mdctx, data, datalen); in ecdsa_signverify_message_update()
384 if (ctx->mdctx == NULL) in ecdsa_sign_message_final()
391 && !EVP_DigestFinal_ex(ctx->mdctx, digest, &dlen)) in ecdsa_sign_message_final()
462 if (!ossl_prov_is_running() || ctx == NULL || ctx->mdctx == NULL) in ecdsa_verify_message_final()
469 if (!EVP_DigestFinal_ex(ctx->mdctx, digest, &dlen)) in ecdsa_verify_message_final()
522 if (ctx->mdctx == NULL) { in ecdsa_digest_signverify_init()
523 ctx->mdctx = EVP_MD_CTX_new(); in ecdsa_digest_signverify_init()
524 if (ctx->mdctx == NULL) in ecdsa_digest_signverify_init()
528 if (!EVP_DigestInit_ex2(ctx->mdctx, ctx->md, params)) in ecdsa_digest_signverify_init()
532 EVP_MD_CTX_free(ctx->mdctx); in ecdsa_digest_signverify_init()
533 ctx->mdctx = NULL; in ecdsa_digest_signverify_init()
550 if (ctx == NULL || ctx->mdctx == NULL) in ecdsa_digest_signverify_update()
592 if (!ossl_prov_is_running() || ctx == NULL || ctx->mdctx == NULL) in ecdsa_digest_verify_final()
611 EVP_MD_CTX_free(ctx->mdctx); in ecdsa_freectx()
648 if (srcctx->mdctx != NULL) { in ecdsa_dupctx()
649 dstctx->mdctx = EVP_MD_CTX_new(); in ecdsa_dupctx()
650 if (dstctx->mdctx == NULL in ecdsa_dupctx()
651 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in ecdsa_dupctx()
820 if (ctx->mdctx == NULL) in ecdsa_get_ctx_md_params()
823 return EVP_MD_CTX_get_params(ctx->mdctx, params); in ecdsa_get_ctx_md_params()
840 if (ctx->mdctx == NULL) in ecdsa_set_ctx_md_params()
843 return EVP_MD_CTX_set_params(ctx->mdctx, params); in ecdsa_set_ctx_md_params()
929 if (ctx->mdctx == NULL) { in ecdsa_sigalg_signverify_init()
930 ctx->mdctx = EVP_MD_CTX_new(); in ecdsa_sigalg_signverify_init()
931 if (ctx->mdctx == NULL) in ecdsa_sigalg_signverify_init()
935 if (!EVP_DigestInit_ex2(ctx->mdctx, ctx->md, params)) in ecdsa_sigalg_signverify_init()
941 EVP_MD_CTX_free(ctx->mdctx); in ecdsa_sigalg_signverify_init()
942 ctx->mdctx = NULL; in ecdsa_sigalg_signverify_init()