Lines Matching refs:kdfctx
41 EVP_KDF_CTX *kdfctx; member
47 PROV_KDF_CTX *kdfctx; in kdf_newctx() local
53 kdfctx = OPENSSL_zalloc(sizeof(PROV_KDF_CTX)); in kdf_newctx()
54 if (kdfctx == NULL) in kdf_newctx()
57 kdfctx->provctx = provctx; in kdf_newctx()
62 kdfctx->kdfctx = EVP_KDF_CTX_new(kdf); in kdf_newctx()
65 if (kdfctx->kdfctx == NULL) in kdf_newctx()
68 return kdfctx; in kdf_newctx()
70 OPENSSL_free(kdfctx); in kdf_newctx()
108 kdfsize = EVP_KDF_CTX_get_kdf_size(pkdfctx->kdfctx); in kdf_derive()
123 ret = EVP_KDF_derive(pkdfctx->kdfctx, secret, outlen, NULL); in kdf_derive()
135 EVP_KDF_CTX_free(pkdfctx->kdfctx); in kdf_freectx()
155 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx()
156 if (dstctx->kdfctx == NULL) { in kdf_dupctx()
161 EVP_KDF_CTX_free(dstctx->kdfctx); in kdf_dupctx()
173 return EVP_KDF_CTX_set_params(pkdfctx->kdfctx, params); in kdf_set_ctx_params()
180 return EVP_KDF_CTX_get_params(pkdfctx->kdfctx, params); in kdf_get_ctx_params()