diff options
Diffstat (limited to 'tests/thread/stress_aes.py')
-rw-r--r-- | tests/thread/stress_aes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/thread/stress_aes.py b/tests/thread/stress_aes.py index ebc84d79b3..aaf9f576dd 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): |