Lines Matching refs:setting
657 static char *BF_crypt(const char *key, const char *setting, in BF_crypt() argument
683 if (setting[0] != '$' || in BF_crypt()
684 setting[1] != '2' || in BF_crypt()
685 setting[2] < 'a' || setting[2] > 'z' || in BF_crypt()
686 !flags_by_subtype[(unsigned int)(unsigned char)setting[2] - 'a'] || in BF_crypt()
687 setting[3] != '$' || in BF_crypt()
688 setting[4] < '0' || setting[4] > '3' || in BF_crypt()
689 setting[5] < '0' || setting[5] > '9' || in BF_crypt()
690 (setting[4] == '3' && setting[5] > '1') || in BF_crypt()
691 setting[6] != '$') { in BF_crypt()
696 count = (BF_word)1 << ((setting[4] - '0') * 10 + (setting[5] - '0')); in BF_crypt()
697 if (count < min || BF_decode(data.binary.salt, &setting[7], 16)) { in BF_crypt()
704 flags_by_subtype[(unsigned int)(unsigned char)setting[2] - 'a']); in BF_crypt()
776 memcpy(output, setting, 7 + 22 - 1); in BF_crypt()
778 BF_atoi64[(int)setting[7 + 22 - 1] - 0x20] & 0x30]; in BF_crypt()
789 static int _crypt_output_magic(const char *setting, char *output, int size) in _crypt_output_magic() argument
798 if (setting[0] == '*' && setting[1] == '0') in _crypt_output_magic()
824 char *php_crypt_blowfish_rn(const char *key, const char *setting, in php_crypt_blowfish_rn() argument
842 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
843 retval = BF_crypt(key, setting, output, size, 16); in php_crypt_blowfish_rn()
856 (unsigned int)(unsigned char)setting[2] - 'a']; in php_crypt_blowfish_rn()
858 buf.s[2] = setting[2]; in php_crypt_blowfish_rn()
884 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()