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
commitd96234504f826ebf9f44e0977439c09db755131a (patch)
tree9b8e072866bb43cd0d942b429e4b74e69c553b40
parent64f9e1d493d85a46956ff86677afec2692ebe49a (diff)
downloadrsa-git-d96234504f826ebf9f44e0977439c09db755131a.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')