Home
last modified time | relevance | path

Searched refs:salt_data (Results 1 – 1 of 1) sorted by relevance

/busybox-1.35.0/libbb/
Dpw_encrypt_sha.c19 sha_crypt(/*const*/ char *key_data, /*const*/ char *salt_data) in sha_crypt() argument
53 cnt = strlen(salt_data) + 1 + 43 + 1; in sha_crypt()
55 if (salt_data[1] == '6') { /* sha512 */ in sha_crypt()
61 *resptr++ = salt_data[1]; in sha_crypt()
64 salt_data += 3; in sha_crypt()
65 if (strncmp(salt_data, str_rounds, 7) == 0) { in sha_crypt()
68 cnt = bb_strtou(salt_data + 7, &endp, 10); in sha_crypt()
70 salt_data = endp + 1; in sha_crypt()
80 salt_len = strchrnul(salt_data, '$') - salt_data; in sha_crypt()
85 salt_data = xstrndup(salt_data, salt_len); in sha_crypt()
[all …]