SHAKE test vectors#

Test vectors#

class crypto_condor.vectors.SHAKE.ShakeVectors(
xof_algorithm,
orientation,
short_msg,
long_msg,
montecarlo,
variable,
)#

A class to load SHAKE test vectors.

Do not instantiate directly, use load() instead.

Parameters:
  • xof_algorithm (Algorithm) – The XOF algorithm to use.

  • orientation (Orientation) – The orientation of the implementation, either bit- or byte-oriented.

  • short_msg_tests – Short message tests.

  • long_msg_tests – Long message tests.

  • montecarlo_tests – Monte-Carlo tests.

Example

To load SHAKE128 test vectors for a bit-oriented implementation.

>>> from crypto_condor.vectors.SHAKE import Algorithm, Orientation, ShakeVectors
>>> vectors = ShakeVectors.load(Algorithm.SHAKE128, Orientation.BIT)

Enums#

enum crypto_condor.vectors.SHAKE.Algorithm(value)#

Supported extensible output functions.

Member Type:

str

Valid values are as follows:

SHAKE128 = <Algorithm.SHAKE128: 'SHAKE128'>#
SHAKE256 = <Algorithm.SHAKE256: 'SHAKE256'>#
enum crypto_condor.vectors.SHAKE.Orientation(value)#

Orientation of the implementation.

Member Type:

str

Valid values are as follows:

BIT = <Orientation.BIT: 'bit'>#
BYTE = <Orientation.BYTE: 'byte'>#

Exceptions#

exception crypto_condor.vectors.SHAKE.ShakeVectorsError#

Exception for errors when loading vectors.