2
0
mirror of https://github.com/apprenticeharper/DeDRM_tools synced 2024-10-30 21:20:10 +00:00

PyCrypto requires RSA values to be long

This is at least true for PyCrypto 2.6.1
This commit is contained in:
Ivan Lazar Miljenovic 2020-11-11 20:51:19 +08:00
parent e2e19fb50f
commit a1703e15d4

2
DeDRM_plugin/ineptepub.py Normal file → Executable file
View File

@ -310,7 +310,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 self._rsa.decrypt(data)