Fix another exception thrown when unable to find kindle keys.

This commit is contained in:
Jeremy Whiting 2020-10-21 10:56:58 -06:00
parent 0add3646d9
commit e0ec691dd6
1 changed files with 1 additions and 1 deletions

View File

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