Lines Matching refs:dstctx
134 PROV_SM2_CTX *dstctx;
136 dstctx = OPENSSL_zalloc(sizeof(*srcctx));
137 if (dstctx == NULL)
140 *dstctx = *srcctx;
141 memset(&dstctx->md, 0, sizeof(dstctx->md));
143 if (dstctx->key != NULL && !EC_KEY_up_ref(dstctx->key)) {
144 OPENSSL_free(dstctx);
148 if (!ossl_prov_digest_copy(&dstctx->md, &srcctx->md)) {
149 sm2_freectx(dstctx);
153 return dstctx;