cascada.primitives.xtea module
XTEA cipher.
- class cascada.primitives.xtea.XTEAKeySchedule(*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.xtea.XTEAEncryption(*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.xtea.XTEACipher(plaintext, masterkey, **options)[source]
Bases:
cascada.primitives.blockcipher.Cipher
XTEA cipher.
- key_schedule
- encryption
- classmethod set_num_rounds(new_num_rounds)[source]
Call
RoundBasedFunction.set_num_rounds
ofkey_schedule
andencryption
(if iterated).