From: Jeremy Whiting Date: Wed, 21 Oct 2020 16:56:58 +0000 (-0600) Subject: Fix another exception thrown when unable to find kindle keys. X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=e0ec691dd6a40ad9a906c9cd868012cc213def56;p=DeDRM.git Fix another exception thrown when unable to find kindle keys. --- diff --git a/DeDRM_plugin/alfcrypto.py b/DeDRM_plugin/alfcrypto.py index 818ec68..4ce46e6 100644 --- a/DeDRM_plugin/alfcrypto.py +++ b/DeDRM_plugin/alfcrypto.py @@ -289,7 +289,7 @@ class KeyIVGen(object): sha = hashlib.sha1 digest_size = sha().digest_size # l - number of output blocks to produce - l = keylen / digest_size + l = int(keylen / digest_size) if keylen % digest_size != 0: l += 1 h = hmac.new( passwd, None, sha )