summaryrefslogtreecommitdiff
path: root/rsa/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'rsa/__init__.py')
-rwxr-xr-xrsa/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsa/__init__.py b/rsa/__init__.py
index bd0358c..063889c 100755
--- a/rsa/__init__.py
+++ b/rsa/__init__.py
@@ -52,7 +52,7 @@ def block_size(n):
# Set aside 2 bits so setting of safebit won't overflow modulo n.
nbits = common.bit_size(n) - 2
- nbytes = nbits / 8
+ nbytes = nbits // 8
return nbytes
@@ -75,7 +75,7 @@ def chopstring(message, key, n, int_op):
nbytes = block_size(n)
msglen = len(message)
- blocks = msglen / nbytes
+ blocks = msglen // nbytes
if msglen % nbytes > 0:
blocks += 1