mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 15:50:32 +01:00
Fix division bug in aes.py
This commit is contained in:
parent
cba892fa1f
commit
6e74bc41ca
@ -18,7 +18,7 @@ def aes_ctr_decrypt(data, key, counter):
|
|||||||
@returns {int[]} decrypted data
|
@returns {int[]} decrypted data
|
||||||
"""
|
"""
|
||||||
expanded_key = key_expansion(key)
|
expanded_key = key_expansion(key)
|
||||||
block_count = int(ceil(float(len(data)) // BLOCK_SIZE_BYTES))
|
block_count = int(ceil(float(len(data)) / BLOCK_SIZE_BYTES))
|
||||||
|
|
||||||
decrypted_data=[]
|
decrypted_data=[]
|
||||||
for i in range(block_count):
|
for i in range(block_count):
|
||||||
|
Loading…
Reference in New Issue
Block a user