Revert "PyCrypto requires RSA values to be long"
This reverts commit a1703e15d4
.
This commit is contained in:
parent
f12a4f3856
commit
e0c7d7d382
|
@ -311,7 +311,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 long(total)
|
return total
|
||||||
|
|
||||||
def decrypt(self, data):
|
def decrypt(self, data):
|
||||||
return _PKCS1_v1_5.new(self._rsa).decrypt(data, 172)
|
return _PKCS1_v1_5.new(self._rsa).decrypt(data, 172)
|
||||||
|
|
Loading…
Reference in New Issue