Fix another exception thrown when unable to find kindle keys.
This commit is contained in:
parent
0add3646d9
commit
e0ec691dd6
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue