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 updateinput_widths
andoutput_widths
if necessary.