aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-16 22:18:49 +0100
committerMattias Andrée <maandree@kth.se>2022-02-16 22:18:49 +0100
commit7b21b850e4619215529d4e042b2e6b9fc4a65947 (patch)
tree69181de14d7b2e03ee02067e84c65a163fe0e66a
parentAdd more tests (diff)
downloadlibar2-7b21b850e4619215529d4e042b2e6b9fc4a65947.tar.gz
libar2-7b21b850e4619215529d4e042b2e6b9fc4a65947.tar.bz2
libar2-7b21b850e4619215529d4e042b2e6b9fc4a65947.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.c b/test.c
index 4f5771a..8ccb4e2 100644
--- a/test.c
+++ b/test.c
@@ -956,7 +956,7 @@ check_libar2_hash(void)
#undef CHECK
#define CHECK(PWDLEN, KEYLEN, ADLEN, HASH)\
- check_hash(spaces, PWDLEN, HASH, KEYLEN ? zeroes : NULL, KEYLEN, KEYLEN ? zeroes : NULL, ADLEN, &ctx_pt, __LINE__)
+ check_hash(spaces, PWDLEN, HASH, KEYLEN ? zeroes : NULL, KEYLEN, ADLEN ? zeroes : NULL, ADLEN, &ctx_pt, __LINE__)
/* these are calculated with reference implmentation */
CHECK(1, 0, 0, "$argon2i$v=19$m=8,t=1,p=1$ICAgICAgICA$MKifhakDKOM");