Home | History | Annotate | Download | only in default

Lines Matching defs:passwd

81     char          passwd[256];
88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd,
93 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd,
133 char passwd[256];
140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd,
145 if (crypto_pwhash(out, (unsigned long long) tests[i].outlen, passwd,
188 const char *passwd;
205 char *passwd;
212 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U);
213 assert(passwd != NULL);
214 memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U);
215 if (crypto_pwhash_str_verify(out, passwd, strlen(passwd)) != 0) {
221 sodium_free(passwd);
231 const char *passwd = "Correct Horse Battery Staple";
238 if (crypto_pwhash_str(str_out, passwd, strlen(passwd), OPSLIMIT,
242 if (crypto_pwhash_str(str_out2, passwd, strlen(passwd), OPSLIMIT,
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) {
297 if (crypto_pwhash_str(str_out2, passwd, 0x100000000ULL, OPSLIMIT,
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) {