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,
192 const char *passwd;
209 char *passwd;
216 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U);
217 assert(passwd != NULL);
218 memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U);
219 if (crypto_pwhash_str_verify(out, passwd, strlen(passwd)) != 0) {
225 sodium_free(passwd);
235 const char *passwd = "Correct Horse Battery Staple";
241 if (crypto_pwhash_argon2i_str(str_out, passwd, strlen(passwd), OPSLIMIT,
245 if (crypto_pwhash_argon2i_str(str_out2, passwd, strlen(passwd), OPSLIMIT,
274 if (crypto_pwhash_argon2i_str_verify(str_out, passwd, strlen(passwd)) != 0) {
278 if (crypto_pwhash_argon2i_str_verify(str_out, passwd, strlen(passwd)) != -1) {
284 if (crypto_pwhash_argon2i_str(str_out2, passwd, 0x100000000ULL, OPSLIMIT,
288 if (crypto_pwhash_argon2i_str(str_out2, passwd, strlen(passwd), 1, MEMLIMIT) !=