cascada.primitives.tea module
TEA cipher.
- class cascada.primitives.tea.TEAKeySchedule(*args, **options)[source]
Bases:
cascada.bitvector.ssa.BvFunction
Key schedule function.
- class cascada.primitives.tea.TEAEncryption(*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.tea.TEACipher(plaintext, masterkey, **options)[source]
Bases:
cascada.primitives.blockcipher.Cipher
TEA cipher.
- key_schedule
- encryption
alias of
cascada.primitives.tea.TEAEncryption
- classmethod set_num_rounds(new_num_rounds)[source]
Call
RoundBasedFunction.set_num_rounds
ofkey_schedule
andencryption
(if iterated).