Lines Matching refs:dstctx
1337 PROV_RSA_CTX *dstctx; in rsa_dupctx() local
1342 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx()
1343 if (dstctx == NULL) in rsa_dupctx()
1346 *dstctx = *srcctx; in rsa_dupctx()
1347 dstctx->rsa = NULL; in rsa_dupctx()
1348 dstctx->md = NULL; in rsa_dupctx()
1349 dstctx->mgf1_md = NULL; in rsa_dupctx()
1350 dstctx->mdctx = NULL; in rsa_dupctx()
1351 dstctx->tbuf = NULL; in rsa_dupctx()
1352 dstctx->propq = NULL; in rsa_dupctx()
1356 dstctx->rsa = srcctx->rsa; in rsa_dupctx()
1360 dstctx->md = srcctx->md; in rsa_dupctx()
1364 dstctx->mgf1_md = srcctx->mgf1_md; in rsa_dupctx()
1367 dstctx->mdctx = EVP_MD_CTX_new(); in rsa_dupctx()
1368 if (dstctx->mdctx == NULL in rsa_dupctx()
1369 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in rsa_dupctx()
1374 dstctx->propq = OPENSSL_strdup(srcctx->propq); in rsa_dupctx()
1375 if (dstctx->propq == NULL) in rsa_dupctx()
1379 return dstctx; in rsa_dupctx()
1381 rsa_freectx(dstctx); in rsa_dupctx()