Lines Matching refs:setting
639 static char *BF_crypt(const char *key, const char *setting, in BF_crypt() argument
662 if (setting[0] != '$' || in BF_crypt()
663 setting[1] != '2' || in BF_crypt()
664 setting[2] < 'a' || setting[2] > 'z' || in BF_crypt()
665 !flags_by_subtype[(unsigned int)(unsigned char)setting[2] - 'a'] || in BF_crypt()
666 setting[3] != '$' || in BF_crypt()
667 setting[4] < '0' || setting[4] > '3' || in BF_crypt()
668 setting[5] < '0' || setting[5] > '9' || in BF_crypt()
669 (setting[4] == '3' && setting[5] > '1') || in BF_crypt()
670 setting[6] != '$') { in BF_crypt()
675 count = (BF_word)1 << ((setting[4] - '0') * 10 + (setting[5] - '0')); in BF_crypt()
676 if (count < min || BF_decode(data.binary.salt, &setting[7], 16)) { in BF_crypt()
683 flags_by_subtype[(unsigned int)(unsigned char)setting[2] - 'a']); in BF_crypt()
755 memcpy(output, setting, 7 + 22 - 1); in BF_crypt()
757 BF_atoi64[(int)setting[7 + 22 - 1] - 0x20] & 0x30]; in BF_crypt()
768 static int _crypt_output_magic(const char *setting, char *output, int size) in _crypt_output_magic() argument
777 if (setting[0] == '*' && setting[1] == '0') in _crypt_output_magic()
803 char *php_crypt_blowfish_rn(const char *key, const char *setting, in php_crypt_blowfish_rn() argument
821 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
822 retval = BF_crypt(key, setting, output, size, 16); in php_crypt_blowfish_rn()
835 (unsigned int)(unsigned char)setting[2] - 'a']; in php_crypt_blowfish_rn()
837 buf.s[2] = setting[2]; in php_crypt_blowfish_rn()
863 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()