Lines Matching refs:srcctx
195 PROV_ECDH_CTX *srcctx = (PROV_ECDH_CTX *)vpecdhctx; in ecdh_dupctx() local
201 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdh_dupctx()
205 *dstctx = *srcctx; in ecdh_dupctx()
216 if (srcctx->k != NULL && !EC_KEY_up_ref(srcctx->k)) in ecdh_dupctx()
219 dstctx->k = srcctx->k; in ecdh_dupctx()
221 if (srcctx->peerk != NULL && !EC_KEY_up_ref(srcctx->peerk)) in ecdh_dupctx()
224 dstctx->peerk = srcctx->peerk; in ecdh_dupctx()
226 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in ecdh_dupctx()
229 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx()
232 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in ecdh_dupctx()
233 dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm, in ecdh_dupctx()
234 srcctx->kdf_ukmlen); in ecdh_dupctx()