Lines Matching refs:output
658 char *output, int size, in BF_crypt() argument
669 BF_word output[6]; in BF_crypt() member
772 data.binary.output[i] = L; in BF_crypt()
773 data.binary.output[i + 1] = R; in BF_crypt()
776 memcpy(output, setting, 7 + 22 - 1); in BF_crypt()
777 output[7 + 22 - 1] = BF_itoa64[(int) in BF_crypt()
782 BF_swap(data.binary.output, 6); in BF_crypt()
783 BF_encode(&output[7 + 22], data.binary.output, 23); in BF_crypt()
784 output[7 + 22 + 31] = '\0'; in BF_crypt()
786 return output; in BF_crypt()
789 static int _crypt_output_magic(const char *setting, char *output, int size) in _crypt_output_magic() argument
794 output[0] = '*'; in _crypt_output_magic()
795 output[1] = '0'; in _crypt_output_magic()
796 output[2] = '\0'; in _crypt_output_magic()
799 output[1] = '1'; in _crypt_output_magic()
825 char *output, int size) 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()
884 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
891 const char *input, int size, char *output, int output_size)
897 if (output_size > 0) output[0] = '\0';
904 output[0] = '$';
905 output[1] = '2';
906 output[2] = prefix[2];
907 output[3] = '$';
908 output[4] = '0' + count / 10;
909 output[5] = '0' + count % 10;
910 output[6] = '$';
912 BF_encode(&output[7], (const BF_word *)input, 16);
913 output[7 + 22] = '\0';
915 return output;