diff options
Diffstat (limited to 'rsa/common.py')
-rw-r--r-- | rsa/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rsa/common.py b/rsa/common.py index 59d5e62..ca732e5 100644 --- a/rsa/common.py +++ b/rsa/common.py @@ -120,9 +120,9 @@ def extended_gcd(a: int, b: int) -> typing.Tuple[int, int, int]: (x, lx) = ((lx - (q * x)), x) (y, ly) = ((ly - (q * y)), y) if lx < 0: - lx += ob # If neg wrap modulo orignal b + lx += ob # If neg wrap modulo original b if ly < 0: - ly += oa # If neg wrap modulo orignal a + ly += oa # If neg wrap modulo original a return a, lx, ly # Return only positive values |