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#
Exceptions#
- exception crypto_condor.vectors.SHAKE.ShakeVectorsError#
Exception for errors when loading vectors.