[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
Tue May 11 08:09:19 CEST 2021
Daiki Ueno commented on a discussion on lib/nettle/ecc/override/ecc-mod-arith.c.diff: https://gitlab.com/gnutls/gnutls/-/merge_requests/1407#note_572099422
> +--- a/ecc-mod-arith.c
> ++++ b/ecc-mod-arith.c
> +@@ -125,3 +125,14 @@ ecc_mod_sqr (const struct ecc_modulo *m, mp_limb_t *rp,
> + mpn_sqr (rp, ap, m->size);
> + m->reduce (m, rp);
> + }
> ++
> ++void
> ++ecc_mod_mul_canonical (const struct ecc_modulo *m, mp_limb_t *rp,
> ++ const mp_limb_t *ap, const mp_limb_t *bp, mp_limb_t *tp)
> ++{
> ++ mp_limb_t cy;
> ++ ecc_mod_mul(m, tp, ap, bp);
> ++
> ++ cy = mpn_sub_n (rp, tp, m->m, m->size);
> ++ cnd_copy (cy, rp, tp, m->size);
Thank you; that makes things much clearer. I've applied those changes.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1407#note_572099422
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/20210511/7d1100b5/attachment.html>
More information about the Gnutls-devel
mailing list