diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 01:16:33 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-07 02:18:30 +0530 |
commit | db4678e448d6e7da9743f4028c94b540fcafc528 (patch) | |
tree | a4878669354f77248567eef6c3cd45318659320d /test | |
parent | a349d4d6415e9aa0fb11c674e405d57fa13cc7fd (diff) | |
download | hypervideo-pre-db4678e448d6e7da9743f4028c94b540fcafc528.tar.lz hypervideo-pre-db4678e448d6e7da9743f4028c94b540fcafc528.tar.xz hypervideo-pre-db4678e448d6e7da9743f4028c94b540fcafc528.zip |
Update to ytdl-commit-de39d128
[extractor/ceskatelevize] Back-port extractor from yt-dlp
https://github.com/ytdl-org/youtube-dl/commit/de39d1281cea499cb1adfce5ff7e0a56f1bad5fe
Closes #5361, Closes #4634, Closes #5210
Diffstat (limited to 'test')
-rw-r--r-- | test/test_aes.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_aes.py b/test/test_aes.py index b26af5605..8e8fc0b3e 100644 --- a/test/test_aes.py +++ b/test/test_aes.py @@ -11,7 +11,6 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import base64 from yt_dlp.aes import ( - BLOCK_SIZE_BYTES, aes_cbc_decrypt, aes_cbc_decrypt_bytes, aes_cbc_encrypt, @@ -103,8 +102,7 @@ class TestAES(unittest.TestCase): def test_ecb_encrypt(self): data = bytes_to_intlist(self.secret_msg) - data += [0x08] * (BLOCK_SIZE_BYTES - len(data) % BLOCK_SIZE_BYTES) - encrypted = intlist_to_bytes(aes_ecb_encrypt(data, self.key, self.iv)) + encrypted = intlist_to_bytes(aes_ecb_encrypt(data, self.key)) self.assertEqual( encrypted, b'\xaa\x86]\x81\x97>\x02\x92\x9d\x1bR[[L/u\xd3&\xd1(h\xde{\x81\x94\xba\x02\xae\xbd\xa6\xd0:') |