summaryrefslogtreecommitdiff
path: root/tests/thread/stress_aes.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-02-02 11:51:48 +1100
committerJim Mussared <jim.mussared@gmail.com>2023-02-02 12:51:03 +1100
commit8b2748269244304854b3462cb8902952b4dcb892 (patch)
tree05c315fc329eb32bb55c71303eef2183bf818e35 /tests/thread/stress_aes.py
parentfe2a8332ff9c7cc7b66ed6da04f5a4a825309818 (diff)
top: Update Python formatting to black "2023 stable style".
See https://black.readthedocs.io/en/stable/the_black_code_style/index.html Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/thread/stress_aes.py')
-rw-r--r--tests/thread/stress_aes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/thread/stress_aes.py b/tests/thread/stress_aes.py
index ebc84d79b..aaf9f576d 100644
--- a/tests/thread/stress_aes.py
+++ b/tests/thread/stress_aes.py
@@ -38,6 +38,7 @@ aes_s_box_table = bytes((
))
# fmt: on
+
# multiplication of polynomials modulo x^8 + x^4 + x^3 + x + 1 = 0x11b
def aes_gf8_mul_2(x):
if x & 0x80:
@@ -80,6 +81,7 @@ def aes_r_con(a):
# using OCB, where the sequence is xored against the plaintext.
# Care must be taken to (almost) always choose a different IV.
+
# all inputs must be size 16
def aes_add_round_key(state, w):
for i in range(16):