Lines Matching refs:salt_len
185 size_t salt_len; member
192 static struct salt *find_by_salt(unsigned char *salt, size_t salt_len) in find_by_salt() argument
198 if ((p->salt_len == salt_len) && in find_by_salt()
199 !memcmp(p->salt, salt, salt_len)) in find_by_salt()
204 static void add_salt(unsigned char *salt, size_t salt_len) in add_salt() argument
206 if (find_by_salt(salt, salt_len)) in add_salt()
217 salt_list[num_salt].salt_len = salt_len; in add_salt()
278 int fd, ret, salt_len = 0; in parse_salt() local
284 salt_len = strlen(cp); in parse_salt()
285 if (salt_len >= EXT4_MAX_SALT_SIZE) in parse_salt()
310 salt_len = 16; in parse_salt()
321 if (salt_len >= EXT4_MAX_SALT_SIZE) in parse_salt()
327 buf[salt_len++] = in parse_salt()
332 salt_len = 16; in parse_salt()
338 salt_buf = malloc(salt_len); in parse_salt()
343 memcpy(salt_buf, buf, salt_len); in parse_salt()
344 add_salt(salt_buf, salt_len); in parse_salt()
425 if (salt->salt_len > EXT4_MAX_SALT_SIZE) { in pbkdf2_sha512()
426 printf("Salt size is %zd; max is %d.\n", salt->salt_len, in pbkdf2_sha512()
432 memcpy(saltbuf, salt->salt, salt->salt_len); in pbkdf2_sha512()