diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2011-08-10 14:21:56 +0200 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2011-08-10 14:21:56 +0200 |
commit | d96234504f826ebf9f44e0977439c09db755131a (patch) | |
tree | 9b8e072866bb43cd0d942b429e4b74e69c553b40 | |
parent | 64f9e1d493d85a46956ff86677afec2692ebe49a (diff) | |
download | rsa-git-d96234504f826ebf9f44e0977439c09db755131a.tar.gz |
Removed superfluous check
-rw-r--r-- | rsa/core.py | 4 |
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') |