[gnutls-devel] GnuTLS | Expose HPKE through abstract key API [BASE+PSK] (!1976)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Jul 7 01:50:24 CEST 2025




Daiki Ueno started a new discussion on lib/includes/gnutls/abstract.h: https://gitlab.com/gnutls/gnutls/-/merge_requests/1976#note_2606457953

 >  			gnutls_certificate_print_formats_t format,
 >  			gnutls_datum_t *out);
 >  
 > +int gnutls_privkey_encap(gnutls_pubkey_t pkR, gnutls_datum_t psk,
 > +			 gnutls_hpke_mode_t mode, gnutls_pubkey_t *pkE,

Although this is suggested in the original issue, I would not hard-wire this API to HPKE, now that we also have ML-KEM. Perhaps `mode` could be turned into a flag, e.g., adding a `gnutls_pk_encapsulate_flags_t`? PSK might deserve a new API function though.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1976#note_2606457953
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250706/dcdbd006/attachment.html>


More information about the Gnutls-devel mailing list