Lines Matching refs:memlimit
7 #define MEMLIMIT 5000000
18 size_t memlimit;
95 tests[i].opslimit, tests[i].memlimit,
115 size_t memlimit;
147 tests[i].opslimit, tests[i].memlimit,
185 OPSLIMIT, MEMLIMIT, crypto_pwhash_alg_argon2id13()) == -1);
242 MEMLIMIT) != 0) {
246 MEMLIMIT) != 0) {
252 if (crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT) != 0) {
255 if (crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT / 2) != 1 ||
256 crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT / 2, MEMLIMIT) != 1 ||
257 crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT * 2) != 1 ||
258 crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT * 2, MEMLIMIT) != 1) {
261 if (crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT / 2) != 1) {
264 if (crypto_pwhash_str_needs_rehash(str_out + 1, OPSLIMIT, MEMLIMIT) != -1 ||
265 crypto_pwhash_argon2i_str_needs_rehash(str_out + 1, OPSLIMIT, MEMLIMIT) != -1) {
285 MEMLIMIT) != -1) {
288 if (crypto_pwhash_argon2i_str(str_out2, passwd, strlen(passwd), 1, MEMLIMIT) !=
363 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT,
367 OPSLIMIT, MEMLIMIT) == 0);
369 OPSLIMIT / 2, MEMLIMIT) == 1);
371 OPSLIMIT, MEMLIMIT / 2) == 1);
375 OPSLIMIT, MEMLIMIT) == -1);
377 assert(crypto_pwhash_argon2id_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1);
378 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT,
382 OPSLIMIT, MEMLIMIT) == 0);
384 OPSLIMIT / 2, MEMLIMIT) == 1);
386 OPSLIMIT, MEMLIMIT / 2) == 1);
389 assert(crypto_pwhash_argon2id_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1);
391 OPSLIMIT, MEMLIMIT) == -1);