Home
last modified time | relevance | path

Searched refs:str_out (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/libsodium/test/default/
H A Dpwhash_argon2id.c229 char *str_out; in str_tests() local
235 str_out = (char *) sodium_malloc(crypto_pwhash_argon2id_STRBYTES); in str_tests()
238 if (crypto_pwhash_str(str_out, passwd, strlen(passwd), OPSLIMIT, in str_tests()
246 if (strcmp(str_out, str_out2) == 0) { 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 Dpwhash_argon2i.c233 char *str_out; in str_tests() local
239 str_out = (char *) sodium_malloc(crypto_pwhash_STRBYTES); in str_tests()
242 if (crypto_pwhash_argon2i_str(str_out, passwd, strlen(passwd), OPSLIMIT, in str_tests()
250 if (strcmp(str_out, str_out2) == 0) { 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 Dpwhash_scrypt.c300 char *str_out; in str_tests() local
306 str_out = in str_tests()
312 if (crypto_pwhash_scryptsalsa208sha256_str(str_out, passwd, strlen(passwd), in str_tests()
320 if (strcmp(str_out, str_out2) == 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()
[all …]