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)
pull/1380/head
Apprentice Harper 4 years ago committed by GitHub
commit 87881659c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save