]> git.codecow.com Git - Monocypher.git/commit
Added a test vector for Argon2i
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 22 Mar 2018 12:30:21 +0000 (13:30 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 22 Mar 2018 20:17:10 +0000 (21:17 +0100)
commit9a1175ae3c72095374974c8710078431aa79bbda
tree98f91f5c7145ebbf8194540aa92651983a419cfc
parent9f8cf808fdb14d062b91e194fe1d28d2fd781db4
Added a test vector for Argon2i

Libsodium's API doesn't let the user specify the `key` and `ad`
arguments.  An implementation that flips them by mistake would still
pass the test vectors.

So I added a test vector from the reference implementation (hard coded,
to avoid dragging the whole reference implementation with us).  With
that, we're sure `key` and `ad` are processed in the right order.

It wouldn't have affected security, but due diligence can't hurt.
tests/gen/argon2i.c
tests/gen/makefile
tests/test.c
tests/vectors/argon2i [new file with mode: 0644]