Lines Matching defs:salt
28 * Added more values to handle illegal salt values the way normal crypt()
61 char *DES_crypt(const char *buf, const char *salt)
66 return (DES_fcrypt(buf, salt, buff));
72 /* Copy at most 2 chars of salt */
73 if ((e_salt[0] = salt[0]) != '\0')
74 e_salt[1] = salt[1];
98 char *DES_fcrypt(const char *buf, const char *salt, char *ret)
118 x = ret[0] = ((salt[0] == '\0') ? 'A' : salt[0]);
120 x = ret[1] = ((salt[1] == '\0') ? 'A' : salt[1]);
123 x = ret[0] = ((salt[0] == '\0') ? os_toascii['A'] : salt[0]);
125 x = ret[1] = ((salt[1] == '\0') ? os_toascii['A'] : salt[1]);