Lines Matching defs:opslimit
6 #define OPSLIMIT 3
17 unsigned long long opslimit;
95 tests[i].opslimit, tests[i].memlimit,
114 unsigned long long opslimit;
147 tests[i].opslimit, tests[i].memlimit,
185 OPSLIMIT, MEMLIMIT, crypto_pwhash_alg_argon2id13()) == -1);
241 if (crypto_pwhash_argon2i_str(str_out, passwd, strlen(passwd), OPSLIMIT,
245 if (crypto_pwhash_argon2i_str(str_out2, passwd, strlen(passwd), OPSLIMIT,
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) {
284 if (crypto_pwhash_argon2i_str(str_out2, passwd, 0x100000000ULL, OPSLIMIT,
290 printf("pwhash_str() with a small opslimit should have failed\n");
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);