1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 18:02:53 +08:00

Fix division bug in aes.py

This commit is contained in:
rzhxeo 2013-08-28 16:01:43 +02:00
parent cba892fa1f
commit 6e74bc41ca

View File

@ -18,7 +18,7 @@ def aes_ctr_decrypt(data, key, counter):
@returns {int[]} decrypted data
"""
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=[]
for i in range(block_count):