arxpy.primitives.shacal2 module

Shacal-2 cipher (based on SHA-256).

class arxpy.primitives.shacal2.Shacal2KeySchedule[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(*W)[source]

Evaluate the function (internal method).

class arxpy.primitives.shacal2.Shacal2Encryption[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(A, B, C, D, E, F, G, H)[source]

Evaluate the function (internal method).

class arxpy.primitives.shacal2.Shacal2Cipher[source]

Bases: arxpy.primitives.primitives.Cipher

key_schedule

alias of Shacal2KeySchedule

encryption

alias of Shacal2Encryption

classmethod set_rounds(new_rounds)[source]

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