cascada.primitives.feal module
FEAL-N cipher.
- cascada.primitives.feal.FEALX = True
whether to use
FEALXKeySchedule
.
- class cascada.primitives.feal.FEALKeySchedule(*args, **options)[source]
Bases:
cascada.bitvector.ssa.RoundBasedFunction
Key schedule function.
- classmethod set_num_rounds(new_num_rounds)[source]
Set
RoundBasedFunction.num_rounds
and updateinput_widths
andoutput_widths
if necessary.
- class cascada.primitives.feal.FEALXKeySchedule(*args, **options)[source]
Bases:
cascada.primitives.feal.FEALKeySchedule
Key schedule function.
- classmethod set_num_rounds(new_num_rounds)[source]
Set
RoundBasedFunction.num_rounds
and updateinput_widths
andoutput_widths
if necessary.
- class cascada.primitives.feal.FEALEncryption(*args, **options)[source]
Bases:
cascada.primitives.blockcipher.Encryption
,cascada.bitvector.ssa.RoundBasedFunction
Encryption function.
- classmethod set_num_rounds(new_num_rounds)[source]
Set
RoundBasedFunction.num_rounds
and updateinput_widths
andoutput_widths
if necessary.
- class cascada.primitives.feal.FEALCipher(plaintext, masterkey, **options)[source]
Bases:
cascada.primitives.blockcipher.Cipher
FEAL cipher.
- key_schedule
- encryption
- classmethod set_num_rounds(new_num_rounds)[source]
Call
RoundBasedFunction.set_num_rounds
ofkey_schedule
andencryption
(if iterated).