Lines Matching defs:setting
502 * We extract the scheme from setting str to allow for
509 nondes_scheme_substr(const char * setting,char * scheme, unsigned int len)
515 start = setting;
544 * Return a pointer to static data consisting of the "setting"
545 * followed by an encryption produced by the "key" and "setting".
548 __crypt(const char *key, const char *setting)
560 if (setting[0] == _PASSWORD_NONDES) {
562 setting, scheme, sizeof(scheme));
571 return (__bcrypt(key, setting));
574 return (__crypt_sha1(key, setting));
577 return (__md5crypt(key, setting));
582 return (__crypt_argon2(key, setting));
585 return (__crypt_argon2(key, setting));
588 return (__crypt_argon2(key, setting));
606 switch (*setting) {
624 *encp++ = *setting++;
629 int value = ascii_to_bin(setting[i]);
630 if (itoa64[value] != setting[i])
632 encp[i] = setting[i];
637 setting += 4;
644 if (ascii_is_unsafe(setting[0]) || ascii_is_unsafe(setting[1]))
650 int value = ascii_to_bin(setting[i]);
651 if (salt_size > 2 && itoa64[value] != setting[i])
653 encp[i] = setting[i];