[gnutls-devel] GnuTLS | accelerated: accept NULL as digest argument for gnutls_hash_output (!2048)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Fri Dec 5 12:42:05 CET 2025
Daiki Ueno commented on a discussion on lib/crypto-selftests.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2048#note_2935477770
> }
> }
> +
> + /* Exercise gnutls_hash_output(..., NULL), which
> + * resets the hash context
> + */
> + if (flags & GNUTLS_SELF_TEST_FLAG_ALL) {
> + ret = gnutls_hash_init(&hd, dig);
> + if (ret < 0) {
> + _gnutls_debug_log("error initializing: %s\n",
> + gnutls_digest_get_name(dig));
> + return gnutls_assert_val(
> + GNUTLS_E_SELF_TEST_ERROR);
> + }
> +
> + /* First feed a dummy content */
Fixed
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2048#note_2935477770
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/20251205/1466766b/attachment-0001.html>
More information about the Gnutls-devel
mailing list