aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-16 23:55:44 +0100
committerMattias Andrée <maandree@kth.se>2022-02-16 23:55:44 +0100
commitd21c35a32fe49d145e1df6df0be1af33a0e16669 (patch)
treec17c9938e668271e4f98c4cfd2671b9ed5b4d5c9 /test.c
parentStrict parameter order in parameter string (this is what is done in the reference implementation and is the desirable behaviour) (diff)
downloadlibar2-d21c35a32fe49d145e1df6df0be1af33a0e16669.tar.gz
libar2-d21c35a32fe49d145e1df6df0be1af33a0e16669.tar.bz2
libar2-d21c35a32fe49d145e1df6df0be1af33a0e16669.tar.xz
Fix previous commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-rw-r--r--test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test.c b/test.c
index 24f8ba7..c6f5db5 100644
--- a/test.c
+++ b/test.c
@@ -1135,8 +1135,11 @@ check_failures(void)
CHECK("$argon2id$p=128,m=128,t=128$AAAABBBBCCCC$");
CHECK("$argon2id$p=128,t=128,m=128$AAAABBBBCCCC$");
CHECK("$argon2id$m=0128,t=128,p=128$AAAABBBBCCCC$");
+ CHECK("$argon2id$m=00128,t=128,p=128$AAAABBBBCCCC$");
CHECK("$argon2id$m=128,t=0128,p=128$AAAABBBBCCCC$");
- CHECK("$argon2id$m=128,t=128,p=0128$AAAABBBBCCCC$");
+ CHECK("$argon2id$m=128,t=00128,p=128$AAAABBBBCCCC$");
+ CHECK("$argon2id$m=128,t=128,p=0128$AAAABBBBCCCC$");;
+ CHECK("$argon2id$m=128,t=128,p=00128$AAAABBBBCCCC$");
CHECK("$argon2id$v=0$m=128,t=128,p=128$AAAABBBBCCCC$");
CHECK("$argon2id$v=016$m=128,t=128,p=128$AAAABBBBCCCC$");
errno = 0;