More tests

This commit is contained in:
Frank Denis 2017-12-06 14:08:00 +00:00
parent 609e42be75
commit 99fa31a595
2 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,8 @@ tv2(void)
1ULL << 12, crypto_pwhash_alg_argon2i13()) != -1) {
printf("[tv2] pwhash with a long password length should have failed\n");
}
assert(crypto_pwhash_argon2i(out, sizeof out, "password", strlen("password"), salt,
OPSLIMIT, MEMLIMIT, crypto_pwhash_alg_argon2id13()) == -1);
}
static void

View File

@ -177,6 +177,8 @@ tv2(void)
1ULL << 12, crypto_pwhash_argon2id_alg_argon2id13()) != -1) {
printf("[tv2] pwhash with a long password length should have failed\n");
}
assert(crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt,
OPSLIMIT, MEMLIMIT, crypto_pwhash_alg_argon2i13()) == -1);
}
static void