Lines Matching refs:strlen
89 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL,
92 strlen(tests[i].salt_hex), NULL, NULL, NULL);
141 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL,
144 strlen(tests[i].salt_hex), NULL, NULL, NULL);
156 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 3,
160 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 3,
164 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 3,
168 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 2,
172 if (crypto_pwhash_argon2id(out, 15, "password", strlen("password"), salt, 3,
180 assert(crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt,
209 out = (char *) sodium_malloc(strlen(tests[i].out) + 1U);
211 memcpy(out, tests[i].out, strlen(tests[i].out) + 1U);
212 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U);
214 memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U);
215 if (crypto_pwhash_str_verify(out, passwd, strlen(passwd)) != 0) {
238 if (crypto_pwhash_str(str_out, passwd, strlen(passwd), OPSLIMIT,
242 if (crypto_pwhash_str(str_out2, passwd, strlen(passwd), OPSLIMIT,
278 if (sodium_is_zero((const unsigned char *) str_out + strlen(str_out),
279 crypto_pwhash_STRBYTES - strlen(str_out)) != 1 ||
280 sodium_is_zero((const unsigned char *) str_out2 + strlen(str_out2),
281 crypto_pwhash_STRBYTES - strlen(str_out2)) != 1) {
284 if (crypto_pwhash_argon2id_str_verify(str_out, passwd, strlen(passwd)) != 0) {
287 if (crypto_pwhash_str_verify(str_out, passwd, strlen(passwd)) != 0) {
291 if (crypto_pwhash_str_verify(str_out, passwd, strlen(passwd)) != -1) {
301 if (crypto_pwhash_str(str_out2, passwd, strlen(passwd), 1, MEMLIMIT) != 0) {
304 if (crypto_pwhash_str(str_out2, passwd, strlen(passwd), 0, MEMLIMIT) != -1) {
314 "password", strlen("password")) != -1) {
319 "password", strlen("password")) != -1) {
324 "password", strlen("password")) != -1) {
329 "password", strlen("password")) != -1) {
334 "password", strlen("password")) != -1) {
339 "password", strlen("password")) != -1) {
344 "password", strlen("password")) != 0) {
349 "passwore", strlen("passwore")) != -1 || errno != EINVAL) {
354 "password", strlen("password")) != -1 || errno != EINVAL) {
359 "password", strlen("password")) != -1 || errno != EINVAL) {
409 assert(crypto_pwhash_strbytes() > strlen(crypto_pwhash_strprefix()));