Skip to content

Commit

Permalink
"old_t, t = t, old_s - quotient * t" shoud be "old_t, t = t, old_t - …
Browse files Browse the repository at this point in the history
…quotient * t"
  • Loading branch information
majunkang committed Dec 14, 2015
1 parent 920b29a commit 8d364f3
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 8d364f3

Please sign in to comment.