Lines Matching refs:srcctx
176 PROV_ECDH_CTX *srcctx = (PROV_ECDH_CTX *)vpecdhctx; in ecdh_dupctx() local
182 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdh_dupctx()
186 *dstctx = *srcctx; in ecdh_dupctx()
197 if (srcctx->k != NULL && !EC_KEY_up_ref(srcctx->k)) in ecdh_dupctx()
200 dstctx->k = srcctx->k; in ecdh_dupctx()
202 if (srcctx->peerk != NULL && !EC_KEY_up_ref(srcctx->peerk)) in ecdh_dupctx()
205 dstctx->peerk = srcctx->peerk; in ecdh_dupctx()
207 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in ecdh_dupctx()
210 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx()
213 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in ecdh_dupctx()
214 dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm, in ecdh_dupctx()
215 srcctx->kdf_ukmlen); in ecdh_dupctx()