Lines Matching refs:info

49     const OSSL_HPKE_KEM_INFO *info;  member
123 ctx->info = ossl_HPKE_KEM_INFO_find_curve(curve); in recipient_key_set()
124 if (ctx->info == NULL) in recipient_key_set()
392 const OSSL_HPKE_KEM_INFO *info; in ossl_ec_dhkem_derive_private() local
397 info = ossl_HPKE_KEM_INFO_find_curve(curve); in ossl_ec_dhkem_derive_private()
398 if (info == NULL) in ossl_ec_dhkem_derive_private()
401 kdfctx = ossl_kdf_ctx_create("HKDF", info->mdname, in ossl_ec_dhkem_derive_private()
408 if (ikmlen < info->Nsecret) { in ossl_ec_dhkem_derive_private()
411 ikmlen, info->Nsecret); in ossl_ec_dhkem_derive_private()
415 suiteid[0] = info->kem_id / 256; in ossl_ec_dhkem_derive_private()
416 suiteid[1] = info->kem_id % 256; in ossl_ec_dhkem_derive_private()
418 if (!ossl_hpke_labeled_extract(kdfctx, prk, info->Nsecret, in ossl_ec_dhkem_derive_private()
425 if (!ossl_hpke_labeled_expand(kdfctx, privbuf, info->Nsk, in ossl_ec_dhkem_derive_private()
426 prk, info->Nsecret, in ossl_ec_dhkem_derive_private()
431 privbuf[0] &= info->bitmask; in ossl_ec_dhkem_derive_private()
432 if (BN_bin2bn(privbuf, info->Nsk, priv) == NULL) in ossl_ec_dhkem_derive_private()
473 seedlen = ctx->info->Nsk; in derivekey()
573 const OSSL_HPKE_KEM_INFO *info = ctx->info; in derive_secret() local
574 size_t encodedpublen = info->Npk; in derive_secret()
575 size_t encodedprivlen = info->Nsk; in derive_secret()
605 memcpy(kemctx, sender_pub, info->Npk); in derive_secret()
606 memcpy(kemctx + info->Npk, recipient_pub, info->Npk); in derive_secret()
609 kdfctx = ossl_kdf_ctx_create(ctx->kdfname, info->mdname, in derive_secret()
613 if (!dhkem_extract_and_expand(kdfctx, secret, info->Nsecret, in derive_secret()
614 info->kem_id, dhkm, dhkmlen, in derive_secret()
651 const OSSL_HPKE_KEM_INFO *info = ctx->info; in dhkem_encap() local
657 *enclen = info->Nenc; in dhkem_encap()
659 *secretlen = info->Nsecret; in dhkem_encap()
663 if (*secretlen < info->Nsecret) { in dhkem_encap()
667 if (*enclen < info->Nenc) { in dhkem_encap()
682 if (sender_publen != info->Npk in dhkem_encap()
697 *secretlen = info->Nsecret; in dhkem_encap()
726 const OSSL_HPKE_KEM_INFO *info = ctx->info; in dhkem_decap() local
729 size_t encodedpublen = info->Npk; in dhkem_decap()
732 *secretlen = info->Nsecret; in dhkem_decap()
736 if (*secretlen < info->Nsecret) { in dhkem_decap()
761 *secretlen = info->Nsecret; in dhkem_decap()