Lines Matching refs:dstctx
196 PROV_ECDH_CTX *dstctx; in ecdh_dupctx() local
201 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in ecdh_dupctx()
202 if (dstctx == NULL) in ecdh_dupctx()
205 *dstctx = *srcctx; in ecdh_dupctx()
209 dstctx->k= NULL; in ecdh_dupctx()
210 dstctx->peerk = NULL; in ecdh_dupctx()
211 dstctx->kdf_md = NULL; in ecdh_dupctx()
212 dstctx->kdf_ukm = NULL; in ecdh_dupctx()
219 dstctx->k = srcctx->k; in ecdh_dupctx()
224 dstctx->peerk = srcctx->peerk; in ecdh_dupctx()
229 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx()
233 dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm, in ecdh_dupctx()
235 if (dstctx->kdf_ukm == NULL) in ecdh_dupctx()
239 return dstctx; in ecdh_dupctx()
242 ecdh_freectx(dstctx); in ecdh_dupctx()