Lines Matching refs:dstctx
144 PROV_KDF_CTX *dstctx; in kdf_dupctx() local
149 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in kdf_dupctx()
150 if (dstctx == NULL) in kdf_dupctx()
153 *dstctx = *srcctx; in kdf_dupctx()
155 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx()
156 if (dstctx->kdfctx == NULL) { in kdf_dupctx()
157 OPENSSL_free(dstctx); in kdf_dupctx()
160 if (!ossl_kdf_data_up_ref(dstctx->kdfdata)) { in kdf_dupctx()
161 EVP_KDF_CTX_free(dstctx->kdfctx); in kdf_dupctx()
162 OPENSSL_free(dstctx); in kdf_dupctx()
166 return dstctx; in kdf_dupctx()