Lines Matching defs:salt
82 unsigned char salt[crypto_pwhash_SALTBYTES];
91 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex,
94 tests[i].passwd_len, (const unsigned char *) salt,
134 unsigned char salt[crypto_pwhash_SALTBYTES];
143 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex,
146 tests[i].passwd_len, (const unsigned char *) salt,
156 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 3,
160 if (crypto_pwhash_argon2i(out, sizeof out, "password", strlen("password"), salt, 3,
164 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 3,
168 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 3,
172 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 2,
176 if (crypto_pwhash(out, 15, "password", strlen("password"), salt, 3,
180 if (crypto_pwhash(out, sizeof out, "password", 0x100000000ULL, salt, 3,
184 assert(crypto_pwhash_argon2i(out, sizeof out, "password", strlen("password"), salt,
234 char *salt;
237 salt = (char *) sodium_malloc(crypto_pwhash_SALTBYTES);
240 memcpy(salt, ">A 16-bytes salt", crypto_pwhash_SALTBYTES);
392 sodium_free(salt);