summaryrefslogtreecommitdiff
path: root/rsa/common.py
diff options
context:
space:
mode:
authorKian-Meng, Ang <kianmeng@cpan.org>2021-10-23 10:15:21 +0800
committerSybren A. Stüvel <sybren@stuvel.eu>2021-11-24 10:28:25 +0100
commit3e9b33834ea005b76001d1d439fe0c1c02e7017c (patch)
tree0904328b6f7db51fc2135a7d0dfe5c7250c3a9da /rsa/common.py
parenta038aef614c656d24c5dfede07e8efe5106ed72e (diff)
downloadrsa-git-3e9b33834ea005b76001d1d439fe0c1c02e7017c.tar.gz
Fix typos
Diffstat (limited to 'rsa/common.py')
-rw-r--r--rsa/common.py4
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