cascada.primitives.noekeon module

NOEKEON cipher.

class cascada.primitives.noekeon.NOEKEONDirectKeySchedule(*args, **options)[source]

Bases: cascada.bitvector.ssa.BvFunction

NOEKEON direct mode key schedule function.

classmethod eval(*master_key)[source]

Evaluate the function (internal method).

class cascada.primitives.noekeon.NOEKEONIndirectKeySchedule(*args, **options)[source]

Bases: cascada.bitvector.ssa.RoundBasedFunction

NOEKEON indirect mode key schedule function.

classmethod set_num_rounds(new_num_rounds)[source]

Set RoundBasedFunction.num_rounds and update input_widths and output_widths if necessary.

classmethod eval(*master_key)[source]

Evaluate the function (internal method).

class cascada.primitives.noekeon.NOEKEONEncryption(*args, **options)[source]

Bases: cascada.primitives.blockcipher.Encryption, cascada.bitvector.ssa.RoundBasedFunction

NOEKEON encryption function.

classmethod set_num_rounds(new_num_rounds)[source]

Set RoundBasedFunction.num_rounds and update input_widths and output_widths if necessary.

classmethod eval(*x)[source]

Evaluate the function (internal method).

class cascada.primitives.noekeon.NOEKEONDirectCipher(plaintext, masterkey, **options)[source]

Bases: cascada.primitives.blockcipher.Cipher

NOEKEON cipher in direct mode.

key_schedule

alias of cascada.primitives.noekeon.NOEKEONDirectKeySchedule

encryption

alias of cascada.primitives.noekeon.NOEKEONEncryption

classmethod set_num_rounds(new_num_rounds)[source]

Call RoundBasedFunction.set_num_rounds of key_schedule and encryption (if iterated).

classmethod test()[source]

Test NOEKEON direct mode with NESSIE test vectors.

class cascada.primitives.noekeon.NOEKEONIndirectCipher(plaintext, masterkey, **options)[source]

Bases: cascada.primitives.blockcipher.Cipher

NOEKEON cipher in indirect mode.

key_schedule

alias of cascada.primitives.noekeon.NOEKEONIndirectKeySchedule

encryption

alias of cascada.primitives.noekeon.NOEKEONEncryption

classmethod set_num_rounds(new_num_rounds)[source]

Call RoundBasedFunction.set_num_rounds of key_schedule and encryption (if iterated).

classmethod test()[source]

Test NOEKEON indirect mode with NESSIE test vectors.