Lines Matching refs:kctx
247 static int kdf_derive(EVP_KDF_CTX *kctx, in kdf_derive() argument
267 ret = EVP_KDF_derive(kctx, out, outlen, params) > 0; in kdf_derive()
273 int ossl_hpke_kdf_extract(EVP_KDF_CTX *kctx, in ossl_hpke_kdf_extract() argument
278 return kdf_derive(kctx, prk, prklen, EVP_KDF_HKDF_MODE_EXTRACT_ONLY, in ossl_hpke_kdf_extract()
283 int ossl_hpke_kdf_expand(EVP_KDF_CTX *kctx, in ossl_hpke_kdf_expand() argument
288 return kdf_derive(kctx, okm, okmlen, EVP_KDF_HKDF_MODE_EXPAND_ONLY, in ossl_hpke_kdf_expand()
295 int ossl_hpke_labeled_extract(EVP_KDF_CTX *kctx, in ossl_hpke_labeled_extract() argument
333 ret = ossl_hpke_kdf_extract(kctx, prk, prklen, salt, saltlen, in ossl_hpke_labeled_extract()
345 int ossl_hpke_labeled_expand(EVP_KDF_CTX *kctx, in ossl_hpke_labeled_expand() argument
384 ret = ossl_hpke_kdf_expand(kctx, okm, okmlen, in ossl_hpke_labeled_expand()
397 EVP_KDF_CTX *kctx = NULL; in ossl_kdf_ctx_create() local
404 kctx = EVP_KDF_CTX_new(kdf); in ossl_kdf_ctx_create()
406 if (kctx != NULL && mdname != NULL) { in ossl_kdf_ctx_create()
416 if (EVP_KDF_CTX_set_params(kctx, params) <= 0) { in ossl_kdf_ctx_create()
417 EVP_KDF_CTX_free(kctx); in ossl_kdf_ctx_create()
421 return kctx; in ossl_kdf_ctx_create()