]> xmof Git - DeDRM.git/commitdiff
Revert "PyCrypto requires RSA values to be long"
authorApprentice Harper <apprenticeharper@gmail.com>
Wed, 25 Nov 2020 08:36:06 +0000 (08:36 +0000)
committerApprentice Harper <apprenticeharper@gmail.com>
Wed, 25 Nov 2020 08:36:06 +0000 (08:36 +0000)
This reverts commit a1703e15d4e9f1afc00a746cac1d1df585bfb546.

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

old mode 100755 (executable)
new mode 100644 (file)
index f4665b2..8d88733
@@ -311,7 +311,7 @@ def _load_crypto_pycrypto():
             total = 0
             for byte in bytes:
                 total = (total << 8) + byte
-            return long(total)
+            return total
 
         def decrypt(self, data):
             return _PKCS1_v1_5.new(self._rsa).decrypt(data, 172)