Searched refs:OPSLIMIT (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | pwhash_argon2id.c | 6 #define OPSLIMIT 3 macro 181 OPSLIMIT, MEMLIMIT, crypto_pwhash_alg_argon2i13()) == -1); in tv2() 238 if (crypto_pwhash_str(str_out, passwd, strlen(passwd), OPSLIMIT, in str_tests() 242 if (crypto_pwhash_str(str_out2, passwd, strlen(passwd), OPSLIMIT, in str_tests() 249 if (crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT) != 0 || in str_tests() 250 crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT) != 0) { in str_tests() 253 if (crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT / 2) != 1 || in str_tests() 254 crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT - 1, MEMLIMIT) != 1 || in str_tests() 255 crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT * 2) != 1 || in str_tests() 256 crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT + 1, MEMLIMIT) != 1) { in str_tests() [all …]
|
H A D | pwhash_argon2i.c | 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() [all …]
|
H A D | pwhash_scrypt.c | 6 #define OPSLIMIT 1000000 macro 313 OPSLIMIT, MEMLIMIT) != 0) { in str_tests() 317 OPSLIMIT, MEMLIMIT) != 0) { in str_tests() 324 (str_out, OPSLIMIT, MEMLIMIT) != 0) { in str_tests() 328 (str_out, OPSLIMIT, MEMLIMIT / 2) != 1 || in str_tests() 330 (str_out, OPSLIMIT / 2, MEMLIMIT) != 1 || in str_tests() 332 (str_out, OPSLIMIT, MEMLIMIT * 2) != 1 || in str_tests() 334 (str_out, OPSLIMIT * 2, MEMLIMIT) != 1) { in str_tests() 338 (str_out + 1, OPSLIMIT, MEMLIMIT) != -1) { in str_tests() 361 assert(crypto_pwhash_str_needs_rehash(str_out, OPSLIMIT, MEMLIMIT) == -1); in str_tests() [all …]
|