Lines Matching refs:srcctx
985 PROV_RSA_CTX *srcctx = (PROV_RSA_CTX *)vprsactx; in rsa_dupctx() local
991 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx()
997 *dstctx = *srcctx; in rsa_dupctx()
1004 if (srcctx->rsa != NULL && !RSA_up_ref(srcctx->rsa)) in rsa_dupctx()
1006 dstctx->rsa = srcctx->rsa; in rsa_dupctx()
1008 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in rsa_dupctx()
1010 dstctx->md = srcctx->md; in rsa_dupctx()
1012 if (srcctx->mgf1_md != NULL && !EVP_MD_up_ref(srcctx->mgf1_md)) in rsa_dupctx()
1014 dstctx->mgf1_md = srcctx->mgf1_md; in rsa_dupctx()
1016 if (srcctx->mdctx != NULL) { in rsa_dupctx()
1019 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in rsa_dupctx()
1023 if (srcctx->propq != NULL) { in rsa_dupctx()
1024 dstctx->propq = OPENSSL_strdup(srcctx->propq); in rsa_dupctx()