]> git.codecow.com Git - Monocypher.git/commit
Adjusted the number of test vectors
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 22 Mar 2018 20:51:06 +0000 (21:51 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 22 Mar 2018 20:51:06 +0000 (21:51 +0100)
commitf1db3f57b0f679d878bab3a7072ac6be5f3d00a6
tree370260545f1af25e0a2a2a83179cb667e3493987
parent31ff91caabf56c6fa4ca9013c3d51cb7bf698046
Adjusted the number of test vectors

There were too many tests vectors.  This is redundant, takes more time
to test, and bloats the generated vectors header file, which then takes
longer to compile.

I reduced their numbers, while making sure they were as effective as
they used to be (maximum code coverage, and every relevant lengths
still tested).

For those who worry about dangerously reducing the number of tests for
Poly1305: don't.  There is nothing the random tests can catch that the
official, hand crafted test vectors cannot.  The random tests don't
really test the core algorithm, they test the loading code.
tests/gen/argon2i.c
tests/gen/chacha20.c
tests/gen/poly1305.c
tests/gen/xchacha20.c