Skip to content

Commit

Permalink
Removed inequalities for 3-bit XOR
Browse files Browse the repository at this point in the history
  • Loading branch information
p-huynh committed Jun 10, 2024
1 parent cba46de commit 18d028f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/unit/components/linear_layer_component_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ def test_milp_wordwise_deterministic_truncated_xor_differential_constraints():

assert str(constraints[0]) == '1 <= 1 + x_6 + x_8 + x_9 + x_10 + x_11 + x_13 + x_18 + x_19 - x_25'
assert str(constraints[1]) == '1 <= 1 + x_6 + x_8 + x_9 + x_10 + x_11 + x_12 + x_13 + x_19 - x_25'
assert str(constraints[-2]) == '1 <= 2 - x_6 - x_8'
assert str(constraints[-1]) == '1 <= 1 + x_7 - x_8'
assert str(constraints[-2]) == '1 <= 1 + x_7 - x_8'
assert str(constraints[-1]) == '1 <= 1 + x_1 - x_2'

cipher = AESBlockCipher(number_of_rounds=2)
cipher_inverse = cipher.cipher_inverse()
Expand Down

0 comments on commit 18d028f

Please sign in to comment.