Lines Matching refs:output
659 char *output, int size, in BF_crypt() argument
670 BF_word output[6]; in BF_crypt() member
773 data.binary.output[i] = L; in BF_crypt()
774 data.binary.output[i + 1] = R; in BF_crypt()
777 memcpy(output, setting, 7 + 22 - 1); in BF_crypt()
778 output[7 + 22 - 1] = BF_itoa64[(int) in BF_crypt()
783 BF_swap(data.binary.output, 6); in BF_crypt()
784 BF_encode(&output[7 + 22], data.binary.output, 23); in BF_crypt()
785 output[7 + 22 + 31] = '\0'; in BF_crypt()
787 return output; in BF_crypt()
790 static int _crypt_output_magic(const char *setting, char *output, int size) in _crypt_output_magic() argument
795 output[0] = '*'; in _crypt_output_magic()
796 output[1] = '0'; in _crypt_output_magic()
797 output[2] = '\0'; in _crypt_output_magic()
800 output[1] = '1'; in _crypt_output_magic()
826 char *output, int size) in php_crypt_blowfish_rn() argument
843 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
844 retval = BF_crypt(key, setting, output, size, 16); in php_crypt_blowfish_rn()
885 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
892 const char *input, int size, char *output, int output_size)
898 if (output_size > 0) output[0] = '\0';
905 output[0] = '$';
906 output[1] = '2';
907 output[2] = prefix[2];
908 output[3] = '$';
909 output[4] = '0' + count / 10;
910 output[5] = '0' + count % 10;
911 output[6] = '$';
913 BF_encode(&output[7], (const BF_word *)input, 16);
914 output[7 + 22] = '\0';
916 return output;