cascada.primitives.picipher module

Permutation \(\pi\) of \(\pi\)-Cipher (16-bit version).

class cascada.primitives.picipher.PiPermutation(*args, **options)[source]

Bases: cascada.bitvector.ssa.RoundBasedFunction

The permutation \(\pi\) as a bit-vector function.

classmethod set_num_rounds(new_num_rounds)[source]

Set RoundBasedFunction.num_rounds and update input_widths and output_widths if necessary.

classmethod eval(*args)[source]

Evaluate the function (internal method).