Lines Matching refs:OPSLIMIT

6 #define OPSLIMIT 3  macro
185 OPSLIMIT, MEMLIMIT, crypto_pwhash_alg_argon2id13()) == -1); in tv2()
242 if (crypto_pwhash_argon2i_str(str_out, passwd, strlen(passwd), OPSLIMIT, in str_tests()
246 if (crypto_pwhash_argon2i_str(str_out2, passwd, strlen(passwd), OPSLIMIT, in str_tests()
253 if (crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT) != 0) { in str_tests()
256 if (crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT / 2) != 1 || in str_tests()
257 crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT / 2, MEMLIMIT) != 1 || in str_tests()
258 crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT * 2) != 1 || in str_tests()
259 crypto_pwhash_argon2i_str_needs_rehash(str_out, OPSLIMIT * 2, MEMLIMIT) != 1) { in str_tests()
262 if (crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT / 2) != 1) { in str_tests()
265 if (crypto_pwhash_str_needs_rehash(str_out + 1, OPSLIMIT, MEMLIMIT) != -1 || in str_tests()
266 crypto_pwhash_argon2i_str_needs_rehash(str_out + 1, OPSLIMIT, MEMLIMIT) != -1) { in str_tests()
285 if (crypto_pwhash_argon2i_str(str_out2, passwd, 0x100000000ULL, OPSLIMIT, in str_tests()
364 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT, in str_tests()
368 OPSLIMIT, MEMLIMIT) == 0); in str_tests()
370 OPSLIMIT / 2, MEMLIMIT) == 1); in str_tests()
372 OPSLIMIT, MEMLIMIT / 2) == 1); in str_tests()
376 OPSLIMIT, MEMLIMIT) == -1); in str_tests()
378 assert(crypto_pwhash_argon2id_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1); in str_tests()
379 assert(crypto_pwhash_str_alg(str_out, "test", 4, OPSLIMIT, MEMLIMIT, in str_tests()
383 OPSLIMIT, MEMLIMIT) == 0); in str_tests()
385 OPSLIMIT / 2, MEMLIMIT) == 1); in str_tests()
387 OPSLIMIT, MEMLIMIT / 2) == 1); in str_tests()
390 assert(crypto_pwhash_argon2id_str_needs_rehash("", OPSLIMIT, MEMLIMIT) == -1); in str_tests()
392 OPSLIMIT, MEMLIMIT) == -1); in str_tests()