aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/aes.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-11-17 19:42:56 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-11-17 19:45:42 +0800
commit582be3584761030bfbee13b0c6ea9e6ce2c8a790 (patch)
tree7de027866475514d227e4e776b63a5e8e06e7153 /youtube_dl/aes.py
parent073d5bf583e8ff8ae71efca5fc6fae0743ac8961 (diff)
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches
Diffstat (limited to 'youtube_dl/aes.py')
-rw-r--r--youtube_dl/aes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/aes.py b/youtube_dl/aes.py
index a01c367de..b8ff45481 100644
--- a/youtube_dl/aes.py
+++ b/youtube_dl/aes.py
@@ -174,6 +174,7 @@ def aes_decrypt_text(data, password, key_size_bytes):
return plaintext
+
RCON = (0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36)
SBOX = (0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0,
@@ -328,4 +329,5 @@ def inc(data):
break
return data
+
__all__ = ['aes_encrypt', 'key_expansion', 'aes_ctr_decrypt', 'aes_cbc_decrypt', 'aes_decrypt_text']