Skip to content

Commit

Permalink
WIP: Fix cp_impossible_xor_differential_model.py tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaCaceres committed May 21, 2024
1 parent 8a0a9e9 commit 8e50274
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def build_impossible_xor_differential_trail_model(self, fixed_variables=[], numb
EXAMPLES::
sage: from claasp.cipher_modules.models.cp.cp_models.cp_deterministic_truncated_xor_differential_model import CpDeterministicTruncatedXorDifferentialModel
sage: from claasp.cipher_modules.models.cp.cp_models.cp_impossible_xor_differential_model import CpImpossibleXorDifferentialModel
sage: from claasp.ciphers.block_ciphers.speck_block_cipher import SpeckBlockCipher
sage: from claasp.cipher_modules.models.utils import set_fixed_variables, integer_to_bit_list
sage: speck = SpeckBlockCipher(block_bit_size=32, key_bit_size=64, number_of_rounds=2)
sage: cp = CpDeterministicTruncatedXorDifferentialModel(speck)
sage: cp = CpImpossibleXorDifferentialModel(speck)
sage: fixed_variables = [set_fixed_variables('key', 'equal', range(64), integer_to_bit_list(0, 64, 'little'))]
sage: cp.build_impossible_xor_differential_trail_model(fixed_variables)
"""
Expand Down

0 comments on commit 8e50274

Please sign in to comment.