Lines Matching refs:output
650 char *output, int size, in BF_crypt() argument
664 BF_word output[6]; in BF_crypt() member
767 data.binary.output[i] = L; in BF_crypt()
768 data.binary.output[i + 1] = R; in BF_crypt()
771 memcpy(output, setting, 7 + 22 - 1); in BF_crypt()
772 output[7 + 22 - 1] = BF_itoa64[(int) in BF_crypt()
777 BF_swap(data.binary.output, 6); in BF_crypt()
778 BF_encode(&output[7 + 22], data.binary.output, 23); in BF_crypt()
779 output[7 + 22 + 31] = '\0'; in BF_crypt()
781 return output; in BF_crypt()
784 static int _crypt_output_magic(const char *setting, char *output, int size) in _crypt_output_magic() argument
789 output[0] = '*'; in _crypt_output_magic()
790 output[1] = '0'; in _crypt_output_magic()
791 output[2] = '\0'; in _crypt_output_magic()
794 output[1] = '1'; in _crypt_output_magic()
820 char *output, int size) in php_crypt_blowfish_rn() argument
836 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
837 retval = BF_crypt(key, setting, output, size, 16); in php_crypt_blowfish_rn()
876 _crypt_output_magic(setting, output, size); in php_crypt_blowfish_rn()
883 const char *input, int size, char *output, int output_size)
889 if (output_size > 0) output[0] = '\0';
896 output[0] = '$';
897 output[1] = '2';
898 output[2] = prefix[2];
899 output[3] = '$';
900 output[4] = '0' + count / 10;
901 output[5] = '0' + count % 10;
902 output[6] = '$';
904 BF_encode(&output[7], (const BF_word *)input, 16);
905 output[7 + 22] = '\0';
907 return output;