Lines Matching defs:dstctx
986 PROV_RSA_CTX *dstctx;
991 dstctx = OPENSSL_zalloc(sizeof(*srcctx));
992 if (dstctx == NULL) {
997 *dstctx = *srcctx;
998 dstctx->rsa = NULL;
999 dstctx->md = NULL;
1000 dstctx->mdctx = NULL;
1001 dstctx->tbuf = NULL;
1002 dstctx->propq = NULL;
1006 dstctx->rsa = srcctx->rsa;
1010 dstctx->md = srcctx->md;
1014 dstctx->mgf1_md = srcctx->mgf1_md;
1017 dstctx->mdctx = EVP_MD_CTX_new();
1018 if (dstctx->mdctx == NULL
1019 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx))
1024 dstctx->propq = OPENSSL_strdup(srcctx->propq);
1025 if (dstctx->propq == NULL)
1029 return dstctx;
1031 rsa_freectx(dstctx);