[gnutls-devel] GnuTLS | Use custom free/realloc for GMP to safely delete temporary secrets (!1554)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Mar 22 17:06:31 CET 2022




Daiki Ueno started a new discussion on lib/includes/gnutls/gnutls.h.in: https://gitlab.com/gnutls/gnutls/-/merge_requests/1554#note_884328766

>  /* constant time memcmp */
>  int gnutls_memcmp(const void *s1, const void *s2, size_t n);
>  
> +/* a variant of free that also zeroizes freed memory */
> +void gnutls_free_zero(void *data, size_t size);

These are internal functions and should not be in the public header (I guess that is causing the doc-dist CI failure, which my previous comment didn't help with). Since they are only used in `lib/nettle/init.c`, maybe you could make them a static function?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1554#note_884328766
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/20220322/d7fd6cf1/attachment.html>


More information about the Gnutls-devel mailing list