summaryrefslogtreecommitdiff
path: root/lib/Crypto/PublicKey/_slowmath.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crypto/PublicKey/_slowmath.py')
-rw-r--r--lib/Crypto/PublicKey/_slowmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crypto/PublicKey/_slowmath.py b/lib/Crypto/PublicKey/_slowmath.py
index d926596..f28ea4c 100644
--- a/lib/Crypto/PublicKey/_slowmath.py
+++ b/lib/Crypto/PublicKey/_slowmath.py
@@ -40,7 +40,7 @@ class error(Exception):
class _RSAKey(object):
def _blind(self, m, r):
# compute r**e * m (mod n)
- return m * pow(r, self.e, self.n)
+ return (m * pow(r, self.e, self.n)) % self.n
def _unblind(self, m, r):
# compute m / r (mod n)