arxpy.primitives.xtea module

Xtea cipher.

class arxpy.primitives.xtea.XteaKeySchedule[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.xtea.XteaEncryption[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.xtea.XteaCipher[source]

Bases: arxpy.primitives.primitives.Cipher

key_schedule

alias of XteaKeySchedule

encryption

alias of XteaEncryption

classmethod set_rounds(new_rounds)[source]

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

classmethod test()[source]

Test Xtea with official test vectors.