cascada.primitives.chaskey module

Permutation \(\pi\) of Chaskey.

class cascada.primitives.chaskey.ChaskeyPi(*args, **options)[source]

Bases: cascada.bitvector.ssa.RoundBasedFunction

The permutation \(\pi\) of Chaskey 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(v0, v1, v2, v3)[source]

Evaluate the function (internal method).