Lines Matching refs:salt_len
232 size_t salt_len; member
239 static struct salt *find_by_salt(unsigned char *salt, size_t salt_len) in find_by_salt() argument
245 if ((p->salt_len == salt_len) && in find_by_salt()
246 !memcmp(p->salt, salt, salt_len)) in find_by_salt()
251 static void add_salt(unsigned char *salt, size_t salt_len) in add_salt() argument
253 if (find_by_salt(salt, salt_len)) in add_salt()
264 salt_list[num_salt].salt_len = salt_len; in add_salt()
324 int fd, ret, salt_len = 0; in parse_salt() local
330 salt_len = strlen(cp); in parse_salt()
331 if (salt_len >= F2FS_MAX_SALT_SIZE) in parse_salt()
356 salt_len = 16; in parse_salt()
367 if (salt_len >= F2FS_MAX_SALT_SIZE) in parse_salt()
373 buf[salt_len++] = in parse_salt()
378 salt_len = 16; in parse_salt()
384 salt_buf = malloc(salt_len); in parse_salt()
389 memcpy(salt_buf, buf, salt_len); in parse_salt()
390 add_salt(salt_buf, salt_len); in parse_salt()
471 if (salt->salt_len > F2FS_MAX_SALT_SIZE) { in pbkdf2_sha512()
472 printf("Salt size is %zd; max is %d.\n", salt->salt_len, in pbkdf2_sha512()
478 memcpy(saltbuf, salt->salt, salt->salt_len); in pbkdf2_sha512()