mirror of
https://github.com/apprenticeharper/DeDRM_tools
synced 2024-12-26 09:58:55 +01:00
Fix another exception thrown when unable to find kindle keys.
This commit is contained in:
parent
0add3646d9
commit
e0ec691dd6
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue