PyCrypto requires RSA values to be long
This is at least true for PyCrypto 2.6.1
This commit is contained in:
parent
e2e19fb50f
commit
a1703e15d4
|
@ -310,7 +310,7 @@ def _load_crypto_pycrypto():
|
||||||
total = 0
|
total = 0
|
||||||
for byte in bytes:
|
for byte in bytes:
|
||||||
total = (total << 8) + byte
|
total = (total << 8) + byte
|
||||||
return total
|
return long(total)
|
||||||
|
|
||||||
def decrypt(self, data):
|
def decrypt(self, data):
|
||||||
return self._rsa.decrypt(data)
|
return self._rsa.decrypt(data)
|
||||||
|
|
Loading…
Reference in New Issue