PyCrypto requires RSA values to be long

This is at least true for PyCrypto 2.6.1
pull/156/head
Ivan Lazar Miljenovic 2020-11-11 20:51:19 +08:00
rodzic e2e19fb50f
commit a1703e15d4
1 zmienionych plików z 1 dodań i 1 usunięć

2
DeDRM_plugin/ineptepub.py 100644 → 100755
Wyświetl plik

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