Lines Matching refs:dstctx
624 PROV_ECDSA_CTX *dstctx; in ecdsa_dupctx() local
629 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdsa_dupctx()
630 if (dstctx == NULL) in ecdsa_dupctx()
633 *dstctx = *srcctx; in ecdsa_dupctx()
634 dstctx->ec = NULL; in ecdsa_dupctx()
635 dstctx->propq = NULL; in ecdsa_dupctx()
642 dstctx->ec = srcctx->ec; in ecdsa_dupctx()
646 dstctx->md = srcctx->md; 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()
656 dstctx->propq = OPENSSL_strdup(srcctx->propq); in ecdsa_dupctx()
657 if (dstctx->propq == NULL) in ecdsa_dupctx()
661 return dstctx; in ecdsa_dupctx()
663 ecdsa_freectx(dstctx); in ecdsa_dupctx()