Lines Matching refs:srcctx
392 PROV_ECDSA_CTX *srcctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_dupctx() local
398 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdsa_dupctx()
402 *dstctx = *srcctx; in ecdsa_dupctx()
408 if (srcctx->ec != NULL && !EC_KEY_up_ref(srcctx->ec)) in ecdsa_dupctx()
411 if (srcctx->kinv != NULL || srcctx->r != NULL) in ecdsa_dupctx()
413 dstctx->ec = srcctx->ec; in ecdsa_dupctx()
415 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in ecdsa_dupctx()
417 dstctx->md = srcctx->md; in ecdsa_dupctx()
419 if (srcctx->mdctx != NULL) { in ecdsa_dupctx()
422 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in ecdsa_dupctx()
426 if (srcctx->propq != NULL) { in ecdsa_dupctx()
427 dstctx->propq = OPENSSL_strdup(srcctx->propq); in ecdsa_dupctx()