diff options
author | Daiki Ueno <ueno@gnu.org> | 2021-04-02 16:01:21 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-05-11 08:08:19 +0200 |
commit | 0f18f07efe103718ca79f5a206a08c3a3cc6c410 (patch) | |
tree | 94fe784d24d76dcd9c34ca50d94a1224e9ad527f /devel | |
parent | 5980d0d9a23b552703507625ba6437bca7f45005 (diff) | |
download | gnutls-0f18f07efe103718ca79f5a206a08c3a3cc6c410.tar.gz |
nettle: port upstream hardening of EC point multiplication
Some internal functions used in point multiplications are known to
misbehave if the scaler is out-of-range. This performs canonical
reduction on scalers, before point multiplication.
This ports the fixes from Nettle upstream to the bundled EC code.
See the Nettle 3.7.2 release announcement for details:
https://lists.lysator.liu.se/pipermail/nettle-bugs/2021/009458.html
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'devel')
-rwxr-xr-x | devel/import-ecc-from-nettle.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/import-ecc-from-nettle.sh b/devel/import-ecc-from-nettle.sh index 2ce6285d39..30b7c58a88 100755 --- a/devel/import-ecc-from-nettle.sh +++ b/devel/import-ecc-from-nettle.sh @@ -96,6 +96,10 @@ for f in $IMPORTS; do echo "Copying file $dst" fi cp $src $dst + if test -e $DST/override/$f.diff; then + echo "Patching file $dst" + patch -s -d $DST -p1 < $DST/override/$f.diff + fi # Use <nettle/*.h> for public headers. for h in $PUBLIC; do p=$(echo $h | sed 's/\./\\./g') |