Lines Matching refs:dstctx
331 PROV_RSA_CTX *dstctx; in rsa_dupctx() local
336 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx()
337 if (dstctx == NULL) in rsa_dupctx()
340 *dstctx = *srcctx; in rsa_dupctx()
341 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) { in rsa_dupctx()
342 OPENSSL_free(dstctx); in rsa_dupctx()
346 if (dstctx->oaep_md != NULL && !EVP_MD_up_ref(dstctx->oaep_md)) { in rsa_dupctx()
347 RSA_free(dstctx->rsa); in rsa_dupctx()
348 OPENSSL_free(dstctx); in rsa_dupctx()
352 if (dstctx->mgf1_md != NULL && !EVP_MD_up_ref(dstctx->mgf1_md)) { in rsa_dupctx()
353 RSA_free(dstctx->rsa); in rsa_dupctx()
354 EVP_MD_free(dstctx->oaep_md); in rsa_dupctx()
355 OPENSSL_free(dstctx); in rsa_dupctx()
359 return dstctx; in rsa_dupctx()