Skip to content

Commit

Permalink
Merge pull request #254 from Crypto-TII/fixing_timing_for_window_heur…
Browse files Browse the repository at this point in the history
…istic_test

Fixing window_size heuristic test
  • Loading branch information
peacker authored Jul 5, 2024
2 parents d19b1b8 + 138ea45 commit f09551f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def test_find_one_xor_differential_trail_with_fixed_weight_and_with_exactly_thre
assert int(result['total_weight']) == int(30.0)
assert computed_number_of_full_windows == number_of_full_windows


def test_find_one_xor_differential_trail_with_fixed_weight_and_with_exactly_one_full_3_window():
speck = SpeckBlockCipher(number_of_rounds=10)
sat = SatXorDifferentialModel(speck)
Expand All @@ -150,9 +151,9 @@ def test_find_one_xor_differential_trail_with_fixed_weight_and_with_exactly_one_

plaintext = set_fixed_variables(
component_id='plaintext',
constraint_type='not_equal',
constraint_type='equal',
bit_positions=range(32),
bit_values=integer_to_bit_list(0, 32, 'big'))
bit_values=[1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0])
key = set_fixed_variables(
component_id='key',
constraint_type='equal',
Expand Down

0 comments on commit f09551f

Please sign in to comment.