Lines Matching refs:srcctx
623 PROV_ECDSA_CTX *srcctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_dupctx() local
629 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdsa_dupctx()
633 *dstctx = *srcctx; in ecdsa_dupctx()
637 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in ecdsa_dupctx()
640 if (srcctx->kinv != NULL || srcctx->r != NULL) in ecdsa_dupctx()
642 dstctx->ec = srcctx->ec; in ecdsa_dupctx()
644 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in ecdsa_dupctx()
646 dstctx->md = srcctx->md; in ecdsa_dupctx()
648 if (srcctx->mdctx != NULL) { in ecdsa_dupctx()
651 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in ecdsa_dupctx()
655 if (srcctx->propq != NULL) { in ecdsa_dupctx()
656 dstctx->propq = OPENSSL_strdup(srcctx->propq); in ecdsa_dupctx()