arxpy.primitives.lea module

Lea 128-bit cipher.

class arxpy.primitives.lea.LeaKeySchedule[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(k0, k1, k2, k3)[source]

Evaluate the function (internal method).

class arxpy.primitives.lea.LeaEncryption[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(p0, p1, p2, p3)[source]

Evaluate the function (internal method).

class arxpy.primitives.lea.LeaCipher[source]

Bases: arxpy.primitives.primitives.Cipher

key_schedule

alias of LeaKeySchedule

encryption

alias of LeaEncryption

classmethod set_rounds(new_rounds)[source]

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