Skip to content

Commit

Permalink
mod exponent with order with OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkiss committed Apr 18, 2023
1 parent db7f39f commit b41ad7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycoin/ecdsa/native/openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class Optimizations:

def multiply(self, p, e):
"Use OpenSSL to perform point multiplication."
if self._order:
e %= self._order
if e == 0 or p == self._infinity:
return self._infinity

Expand Down

0 comments on commit b41ad7d

Please sign in to comment.