Lines Matching refs:output
655 char *output, int size, in BF_crypt() argument
666 BF_word output[6]; in BF_crypt() member
769 data.binary.output[i] = L; in BF_crypt()
770 data.binary.output[i + 1] = R; in BF_crypt()
773 memcpy(output, setting, 7 + 22 - 1); in BF_crypt()
774 output[7 + 22 - 1] = BF_itoa64[(int) in BF_crypt()
779 BF_swap(data.binary.output, 6); in BF_crypt()
780 BF_encode(&output[7 + 22], data.binary.output, 23); in BF_crypt()
781 output[7 + 22 + 31] = '\0'; in BF_crypt()
783 return output; in BF_crypt()
786 static int _crypt_output_magic(const char *setting, char *output, int size) in _crypt_output_magic() argument
791 output[0] = '*'; in _crypt_output_magic()
792 output[1] = '0'; in _crypt_output_magic()
793 output[2] = '\0'; in _crypt_output_magic()
796 output[1] = '1'; in _crypt_output_magic()
822 char *output, int size) in php_crypt_blowfish_rn() argument
839 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
840 retval = BF_crypt(key, setting, output, size, 16); in php_crypt_blowfish_rn()
881 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
888 const char *input, int size, char *output, int output_size)
894 if (output_size > 0) output[0] = '\0';
901 output[0] = '$';
902 output[1] = '2';
903 output[2] = prefix[2];
904 output[3] = '$';
905 output[4] = '0' + count / 10;
906 output[5] = '0' + count % 10;
907 output[6] = '$';
909 BF_encode(&output[7], (const BF_word *)input, 16);
910 output[7 + 22] = '\0';
912 return output;