arxpy.primitives.tea module

Tea cipher.

class arxpy.primitives.tea.TeaKeySchedule[source]

Bases: arxpy.primitives.primitives.KeySchedule

Key schedule function.

classmethod set_rounds(new_rounds)[source]

Change the number of rounds and adjust the input/output widths.

classmethod eval(*master_key)[source]

Evaluate the function (internal method).

class arxpy.primitives.tea.TeaEncryption[source]

Bases: arxpy.primitives.primitives.Encryption

Encryption function.

classmethod set_rounds(new_rounds)[source]

Change the number of rounds and adjust the input/output widths.

classmethod eval(x, y)[source]

Evaluate the function (internal method).

class arxpy.primitives.tea.TeaCipher[source]

Bases: arxpy.primitives.primitives.Cipher

key_schedule

alias of TeaKeySchedule

encryption

alias of TeaEncryption

classmethod set_rounds(new_rounds)[source]

Change the number of rounds and adjust the input/output widths.

classmethod test()[source]

Test tea with official test vectors.