[gnutls-devel] GnuTLS | nettle: port upstream hardening of EC point multiplication [3.6.x] (!1407)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Apr 4 18:45:56 CEST 2021




Daiki Ueno commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1407#note_544526472

> nettle upstream applied this fix to quite a bit more broadly than this patch does. e.g. to eddsa-verify.c which is also present in GnuTLS. Is the respective code dead in gnutls?

I think you mean this change:
https://git.lysator.liu.se/nettle/nettle/-/commit/5b7608fde3a6d2ab82bffb35db1e4e330927c906
which I thought as a cleanup rather than a fix (i.e., the code behavior is identical).

> Might less error prone to add a private helper function ("named like _nettle_backported_ecc_mod_mul_canonical") doing what upstream's ecc_mod_mul_canonical() does.

Maybe, but the convention of EC functions seems to have changed since the last nettle import in gnutls (based on nettle 3.6rc3): e.g., `ecc_mod_mul` takes scratch area now in the master. Therefore, I tried to rather minimize the amount of change.

@nielsmoller any suggestions? I also have backports for nettle 3.4.1 and 2.7.1 (for RHEL and CentOS).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1407#note_544526472
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/20210404/be2616af/attachment-0001.html>


More information about the Gnutls-devel mailing list