Lines Matching refs:dstctx
140 PROV_KDF_CTX *dstctx; in kdf_dupctx() local
145 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in kdf_dupctx()
146 if (dstctx == NULL) in kdf_dupctx()
149 *dstctx = *srcctx; in kdf_dupctx()
151 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx()
152 if (dstctx->kdfctx == NULL) { in kdf_dupctx()
153 OPENSSL_free(dstctx); in kdf_dupctx()
156 if (!ossl_kdf_data_up_ref(dstctx->kdfdata)) { in kdf_dupctx()
157 EVP_KDF_CTX_free(dstctx->kdfctx); in kdf_dupctx()
158 OPENSSL_free(dstctx); in kdf_dupctx()
162 return dstctx; in kdf_dupctx()