Lines Matching refs:kem_info
53 const OSSL_HPKE_KEM_INFO *kem_info; member
84 const OSSL_HPKE_KEM_INFO *kem_info; in hpke_kem_id_nist_curve() local
86 kem_info = ossl_HPKE_KEM_INFO_find_id(kem_id); in hpke_kem_id_nist_curve()
87 return kem_info != NULL && kem_info->groupname != NULL; in hpke_kem_id_nist_curve()
314 const OSSL_HPKE_KEM_INFO **kem_info, in hpke_suite_check() argument
330 if (kem_info != NULL) in hpke_suite_check()
331 *kem_info = kem_info_; in hpke_suite_check()
351 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in hpke_random_suite() local
356 kem_info = ossl_HPKE_KEM_INFO_find_random(libctx); in hpke_random_suite()
357 if (kem_info == NULL) in hpke_random_suite()
359 suite->kem_id = kem_info->kem_id; in hpke_random_suite()
396 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in hpke_expansion() local
402 if (hpke_suite_check(suite, &kem_info, NULL, &aead_info) != 1) { in hpke_expansion()
407 *enclen = kem_info->Nenc; in hpke_expansion()
454 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in hpke_encap() local
466 kem_info = ossl_HPKE_KEM_INFO_find_id(ctx->suite.kem_id); in hpke_encap()
467 if (kem_info == NULL) { in hpke_encap()
473 kem_info->groupname, in hpke_encap()
477 kem_info->keytype, in hpke_encap()
577 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in hpke_decap() local
579 kem_info = ossl_HPKE_KEM_INFO_find_id(ctx->suite.kem_id); in hpke_decap()
580 if (kem_info == NULL) { in hpke_decap()
586 kem_info->groupname, in hpke_decap()
591 kem_info->keytype, in hpke_decap()
802 const OSSL_HPKE_KEM_INFO *kem_info; in OSSL_HPKE_CTX_new() local
810 if (hpke_suite_check(suite, &kem_info, &kdf_info, &aead_info) != 1) { in OSSL_HPKE_CTX_new()
837 ctx->kem_info = kem_info; in OSSL_HPKE_CTX_new()
967 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in OSSL_HPKE_CTX_set1_authpub() local
983 kem_info = ossl_HPKE_KEM_INFO_find_id(ctx->suite.kem_id); in OSSL_HPKE_CTX_set1_authpub()
984 if (kem_info == NULL) in OSSL_HPKE_CTX_set1_authpub()
988 kem_info->groupname, in OSSL_HPKE_CTX_set1_authpub()
992 kem_info->keytype, in OSSL_HPKE_CTX_set1_authpub()
1299 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in OSSL_HPKE_keygen() local
1306 if (hpke_suite_check(suite, &kem_info, NULL, NULL) != 1) { in OSSL_HPKE_keygen()
1319 (char *)kem_info->groupname, 0); in OSSL_HPKE_keygen()
1322 pctx = EVP_PKEY_CTX_new_from_name(libctx, kem_info->keytype, propq); in OSSL_HPKE_keygen()
1371 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in OSSL_HPKE_get_grease_value() local
1389 if (hpke_suite_check(chosen, &kem_info, NULL, &aead_info) != 1) { in OSSL_HPKE_get_grease_value()
1400 plen = kem_info->Npk; in OSSL_HPKE_get_grease_value()
1455 const OSSL_HPKE_KEM_INFO *kem_info = NULL; in OSSL_HPKE_get_recommended_ikmelen() local
1457 if (hpke_suite_check(suite, &kem_info, NULL, NULL) != 1) in OSSL_HPKE_get_recommended_ikmelen()
1459 if (kem_info == NULL) in OSSL_HPKE_get_recommended_ikmelen()
1462 return kem_info->Nsk; in OSSL_HPKE_get_recommended_ikmelen()