diff --git a/scripts/ecdhe.py b/scripts/ecdhe.py index 383afc1a0ce..1c787ee8bb5 100755 --- a/scripts/ecdhe.py +++ b/scripts/ecdhe.py @@ -47,7 +47,7 @@ def inverse_mod(k, p): quotient = old_r // r old_r, r = r, old_r - quotient * r old_s, s = s, old_s - quotient * s - old_t, t = t, old_s - quotient * t + old_t, t = t, old_t - quotient * t gcd, x, y = old_r, old_s, old_t diff --git a/scripts/ecdsa.py b/scripts/ecdsa.py index c50d379b0e0..b329643d0af 100755 --- a/scripts/ecdsa.py +++ b/scripts/ecdsa.py @@ -48,7 +48,7 @@ def inverse_mod(k, p): quotient = old_r // r old_r, r = r, old_r - quotient * r old_s, s = s, old_s - quotient * s - old_t, t = t, old_s - quotient * t + old_t, t = t, old_t - quotient * t gcd, x, y = old_r, old_s, old_t