GnuTLS | hpke: allocate `kem_context` on heap instead of stack (#1882)

Read-only notification of GnuTLS library development activities <[email protected]> Mon, 04 May 2026 04:31:07 +0000
Newsgroups gmane.comp.encryption.gpg.gnutls.devel
Message-ID <[email protected]>

Daiki Ueno created an issue: https://gitlab.com/gnutls/gnutls/-/work_items/1882



Currently, a static buffer of size `HPKE_MAX_INFO_LABEL_SIZE` (= 448)` is allocated for `kem_context`. This is reasonably small to have it on stack, though will be increased when we support PQ algorithms as in https://datatracker.ietf.org/doc/draft-ietf-hpke-pq/.

For future proof, it would probably be better to allocate it on heap.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/work_items/1882
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/4-4ceu8l5k8o8ycyhvp3osmy77q-a84t7/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
Gnutls-devel mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-devel