summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. St?vel <sybren@stuvel.eu>2011-08-10 14:21:56 +0200
committerSybren A. St?vel <sybren@stuvel.eu>2011-08-10 14:21:56 +0200
commitf5b88e81f3b82a27c3eaff55796ff7a6a4de9089 (patch)
tree9b8e072866bb43cd0d942b429e4b74e69c553b40
parent92556eb825bfbfcc6b994e3a416a4ea61c9d169c (diff)
downloadrsa-f5b88e81f3b82a27c3eaff55796ff7a6a4de9089.tar.gz
Removed superfluous check
-rw-r--r--rsa/core.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/rsa/core.py b/rsa/core.py
index cc95f59..d984b89 100644
--- a/rsa/core.py
+++ b/rsa/core.py
@@ -47,10 +47,6 @@ def decrypt_int(cyphertext, dkey, n):
"""Decrypts a cypher text using the decryption key 'dkey', working
modulo n"""
- if type(cyphertext) not in (types.IntType, types.LongType):
- raise TypeError('cyphertext should be an integer, not %s' %
- cyphertext.__type__)
-
assert_int(cyphertext, 'cyphertext')
assert_int(dkey, 'dkey')
assert_int(n, 'n')