From e0ec691dd6a40ad9a906c9cd868012cc213def56 Mon Sep 17 00:00:00 2001 From: Jeremy Whiting Date: Wed, 21 Oct 2020 10:56:58 -0600 Subject: [PATCH] Fix another exception thrown when unable to find kindle keys. --- DeDRM_plugin/alfcrypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )