Lines Matching refs:info
58 const OSSL_HPKE_KEM_INFO *info; member
96 ctx->info = get_kem_info(ecx); in recipient_key_set()
97 if (ctx->info == NULL) in recipient_key_set()
345 const OSSL_HPKE_KEM_INFO *info = get_kem_info(ecx); in ossl_ecx_dhkem_derive_private() local
348 if (ikmlen < info->Nsk) { in ossl_ecx_dhkem_derive_private()
351 ikmlen, info->Nsk); in ossl_ecx_dhkem_derive_private()
355 kdfctx = ossl_kdf_ctx_create("HKDF", info->mdname, ecx->libctx, ecx->propq); in ossl_ecx_dhkem_derive_private()
359 suiteid[0] = info->kem_id / 256; in ossl_ecx_dhkem_derive_private()
360 suiteid[1] = info->kem_id % 256; in ossl_ecx_dhkem_derive_private()
362 if (!ossl_hpke_labeled_extract(kdfctx, prk, info->Nsecret, in ossl_ecx_dhkem_derive_private()
367 if (!ossl_hpke_labeled_expand(kdfctx, privout, info->Nsk, prk, info->Nsecret, in ossl_ecx_dhkem_derive_private()
395 const OSSL_HPKE_KEM_INFO *info = ctx->info; in derivekey() local
406 if (info->Nsk > sizeof(tmpbuf)) in derivekey()
408 if (RAND_priv_bytes_ex(ctx->libctx, tmpbuf, info->Nsk, 0) <= 0) in derivekey()
411 seedlen = info->Nsk; in derivekey()
483 const OSSL_HPKE_KEM_INFO *info = ctx->info; in derive_secret() local
485 size_t encodedkeylen = info->Npk; in derive_secret()
512 kdfctx = ossl_kdf_ctx_create(ctx->kdfname, info->mdname, in derive_secret()
516 if (!dhkem_extract_and_expand(kdfctx, secret, info->Nsecret, in derive_secret()
517 info->kem_id, dhkm, dhkmlen, in derive_secret()
552 const OSSL_HPKE_KEM_INFO *info = ctx->info; in dhkem_encap() local
558 *enclen = info->Nenc; in dhkem_encap()
560 *secretlen = info->Nsecret; in dhkem_encap()
564 if (*secretlen < info->Nsecret) { in dhkem_encap()
568 if (*enclen < info->Nenc) { in dhkem_encap()
588 memcpy(enc, sender_ephempub, info->Nenc); in dhkem_encap()
589 *enclen = info->Nenc; in dhkem_encap()
590 *secretlen = info->Nsecret; in dhkem_encap()
620 const OSSL_HPKE_KEM_INFO *info = ctx->info; in dhkem_decap() local
624 *secretlen = info->Nsecret; in dhkem_decap()
627 if (*secretlen < info->Nsecret) { in dhkem_decap()
631 if (enclen != info->Nenc) { in dhkem_decap()
651 *secretlen = info->Nsecret; in dhkem_decap()