Searched refs:salt (Results 1 - 7 of 7) sorted by relevance
/seL4-test-master/projects/musllibc/src/crypt/ |
H A D | crypt_r.c | 12 char *__crypt_r(const char *key, const char *salt, struct crypt_data *data) argument 19 if (salt[0] == '$' && salt[1] && salt[2]) { 20 if (salt[1] == '1' && salt[2] == '$') 21 return __crypt_md5(key, salt, output); 22 if (salt[1] == '2' && salt[3] == '$') 23 return __crypt_blowfish(key, salt, outpu [all...] |
H A D | crypt.c | 6 char *crypt(const char *key, const char *salt) argument 15 return __crypt_r(key, salt, (struct crypt_data *)buf);
|
H A D | crypt_sha256.c | 7 * in the salt and rounds= setting must contain a valid iteration count, 193 const char *salt; local 201 /* setting: $5$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ 204 salt = setting + 3; 207 if (strncmp(salt, "rounds=", sizeof "rounds=" - 1) == 0) { 218 * rounds as part of the salt or parse them with 223 salt += sizeof "rounds=" - 1; 224 if (!isdigit(*salt)) 226 u = strtoul(salt, &end, 10); 229 salt [all...] |
H A D | crypt_sha512.c | 7 * in the salt and rounds= setting must contain a valid iteration count, 214 const char *salt; local 223 /* setting: $6$rounds=n$salt$ (rounds=n$ and closing $ are optional) */ 226 salt = setting + 3; 229 if (strncmp(salt, "rounds=", sizeof "rounds=" - 1) == 0) { 240 * rounds as part of the salt or parse them with 245 salt += sizeof "rounds=" - 1; 246 if (!isdigit(*salt)) 248 u = strtoul(salt, &end, 10); 251 salt [all...] |
H A D | crypt_md5.c | 202 const char *salt; local 210 /* setting: $1$salt$ (closing $ is optional) */ 213 salt = setting + 3; 214 for (i = 0; i < SALT_MAX && salt[i] && salt[i] != '$'; i++); 217 /* md5(key salt key) */ 220 md5_update(&ctx, salt, slen); 224 /* md5(key $1$ salt repeated-md weird-key[0]-0) */ 239 /* md = f(md, key, salt) iteration */ 247 md5_update(&ctx, salt, sle [all...] |
H A D | crypt_blowfish.c | 609 BF_word salt[4]; member in union:__anon296::__anon297 628 if (count < min || BF_decode(data.binary.salt, &setting[7], 16)) { 631 BF_swap(data.binary.salt, 4); 643 L ^ data.binary.salt[0], R ^ data.binary.salt[1], 652 L ^ data.binary.salt[2], R ^ data.binary.salt[3], 680 tmp1 = data.binary.salt[0]; 681 tmp2 = data.binary.salt[1]; 682 tmp3 = data.binary.salt[ [all...] |
H A D | crypt_des.c | 677 static uint32_t setup_salt(uint32_t salt) argument 686 if (salt & saltbit) 884 uint32_t count, salt, l, r0, r1; local 902 * setting - underscore, 4 chars of count, 4 chars of salt 914 for (i = 5, salt = 0; i < 9; i++) { 918 salt |= value << (i - 5) * 6; 941 * setting - 2 chars of salt 949 salt = (ascii_to_bin(setting[1]) << 6) 960 __do_des(0, 0, &r0, &r1, count, setup_salt(salt), &ekey);
|
Completed in 77 milliseconds