Skip to content

Commit

Permalink
Merge pull request #1 from majunkang/master
Browse files Browse the repository at this point in the history
Fixed typo in the Extended Euclidean Algorithm implementation
  • Loading branch information
andreacorbellini committed Dec 16, 2015
2 parents 920b29a + d19bdf3 commit 26d4247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/ecdhe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion scripts/ecdsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 26d4247

Please sign in to comment.