Skip to content

Commit

Permalink
Merge pull request #290 from Crypto-TII/feat/add_hybrid_impossible_xo…
Browse files Browse the repository at this point in the history
…r_differential_model

Feat/add hybrid impossible xor differential model
  • Loading branch information
peacker authored Nov 11, 2024
2 parents 6ae63d5 + 7d3a6a5 commit 28d11dd
Show file tree
Hide file tree
Showing 6 changed files with 965 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,10 @@ def output_inverse_constraints(self, component):

return cp_declarations, cp_constraints

def propagate_deterministically(self, component, wordwise=False):
def propagate_deterministically(self, component, wordwise=False, inverse=False):
if not wordwise:
if component.type == SBOX:
variables, constraints, sbox_mant = component.cp_deterministic_truncated_xor_differential_trail_constraints(self.sbox_mant)
variables, constraints, sbox_mant = component.cp_deterministic_truncated_xor_differential_trail_constraints(self.sbox_mant, inverse)
self.sbox_mant = sbox_mant
else:
variables, constraints = component.cp_deterministic_truncated_xor_differential_trail_constraints()
Expand Down
Loading

0 comments on commit 28d11dd

Please sign in to comment.