Merge pull request #1362 from ivan-m/pycrypto_rsa_long

PyCrypto requires RSA values to be long not int (which is possible for small numbers)
This commit is contained in:
Apprentice Harper
2020-11-23 13:31:10 +00:00
committed by GitHub

View File

@@ -311,7 +311,7 @@ def _load_crypto_pycrypto():
total = 0
for byte in bytes:
total = (total << 8) + byte
return total
return long(total)
def decrypt(self, data):
return _PKCS1_v1_5.new(self._rsa).decrypt(data, 172)