Re: GnuTLS | Minor cleanup of HPKE API (!2097)

Read-only notification of GnuTLS library development activities <[email protected]> Tue, 21 Apr 2026 15:30:05 +0000
Newsgroups gmane.comp.encryption.gpg.gnutls.devel
Message-ID <[email protected]>


David Dudas commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/2097#note_3271316322


My first draft implementation was like that, with two contexts, one for each role. However, for me it seemed to be overkill and later I preferred to have just one context, with role validation in the setters, as it seemed cleaner this way. But I didn't considered the advantage of "validating" the role for each operation at compile time.
I think having just one context is a cleaner approach, but feel free to do the split if you want, or just open an issue and I will work on it.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2097#note_3271316322
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/sent_notifications/4-aea0jye196qw6l9h9d2dharoj-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