]> xmof Git - DeDRM.git/commitdiff
PyCrypto requires RSA values to be long
authorIvan Lazar Miljenovic <Ivan.Miljenovic@gmail.com>
Wed, 11 Nov 2020 12:51:19 +0000 (20:51 +0800)
committerIvan Lazar Miljenovic <Ivan.Miljenovic@gmail.com>
Wed, 11 Nov 2020 12:51:19 +0000 (20:51 +0800)
This is at least true for PyCrypto 2.6.1

DeDRM_plugin/ineptepub.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 1be1a89..4817ca9
@@ -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)