Lines Matching refs:td
48 MCRYPT td; member
61 ZEND_ARG_INFO(0, td)
67 ZEND_ARG_INFO(0, td)
72 ZEND_ARG_INFO(0, td)
77 ZEND_ARG_INFO(0, td)
81 ZEND_ARG_INFO(0, td)
85 ZEND_ARG_INFO(0, td)
89 ZEND_ARG_INFO(0, td)
93 ZEND_ARG_INFO(0, td)
97 ZEND_ARG_INFO(0, td)
101 ZEND_ARG_INFO(0, td)
105 ZEND_ARG_INFO(0, td)
109 ZEND_ARG_INFO(0, td)
113 ZEND_ARG_INFO(0, td)
117 ZEND_ARG_INFO(0, td)
121 ZEND_ARG_INFO(0, td)
314 int td; \
330 if (td < 0) { \
346 mcrypt_##x(td, ndata, nsize); \
348 mdecrypt_##x(td, ndata, nsize); \
350 end_mcrypt_##x(td)
411 mcrypt_generic_deinit(pm->td); in PHP_INI_BEGIN()
412 mcrypt_module_close(pm->td); in PHP_INI_BEGIN()
553 MCRYPT td; in PHP_FUNCTION() local
562 td = mcrypt_module_open ( in PHP_FUNCTION()
569 if (td == MCRYPT_FAILED) { in PHP_FUNCTION()
574 pm->td = td; in PHP_FUNCTION()
599 max_key_size = mcrypt_enc_get_key_size(pm->td); in PHP_FUNCTION()
600 iv_size = mcrypt_enc_get_iv_size(pm->td); in PHP_FUNCTION()
625 mcrypt_generic_deinit(pm->td); in PHP_FUNCTION()
626 result = mcrypt_generic_init(pm->td, key_s, key_size, iv_s); in PHP_FUNCTION()
677 if (mcrypt_enc_is_block_mode(pm->td) == 1) { /* It's a block algorithm */ in PHP_FUNCTION()
678 block_size = mcrypt_enc_get_block_size(pm->td); in PHP_FUNCTION()
690 mcrypt_generic(pm->td, data_s, data_size); in PHP_FUNCTION()
722 if (mcrypt_enc_is_block_mode(pm->td) == 1) { /* It's a block algorithm */ in PHP_FUNCTION()
723 block_size = mcrypt_enc_get_block_size(pm->td); in PHP_FUNCTION()
735 mdecrypt_generic(pm->td, data_s, data_size); in PHP_FUNCTION()
752 key_sizes = mcrypt_enc_get_supported_key_sizes(pm->td, &count); in PHP_FUNCTION()
767 RETURN_LONG(mcrypt_enc_self_test(pm->td)); in PHP_FUNCTION()
787 if (mcrypt_generic_deinit(pm->td) < 0) { in PHP_FUNCTION()
802 if (mcrypt_enc_is_block_algorithm_mode(pm->td) == 1) { in PHP_FUNCTION()
816 if (mcrypt_enc_is_block_algorithm(pm->td) == 1) { in PHP_FUNCTION()
830 if (mcrypt_enc_is_block_mode(pm->td) == 1) { in PHP_FUNCTION()
843 RETURN_LONG(mcrypt_enc_get_block_size(pm->td)); in PHP_FUNCTION()
852 RETURN_LONG(mcrypt_enc_get_key_size(pm->td)); in PHP_FUNCTION()
861 RETURN_LONG(mcrypt_enc_get_iv_size(pm->td)); in PHP_FUNCTION()
872 name = mcrypt_enc_get_algorithms_name(pm->td); in PHP_FUNCTION()
885 name = mcrypt_enc_get_modes_name(pm->td); in PHP_FUNCTION()
1049 MCRYPT td; in PHP_FUNCTION() local
1058 td = mcrypt_module_open(cipher, cipher_dir_string, module, module_dir_string); in PHP_FUNCTION()
1059 if (td != MCRYPT_FAILED) { in PHP_FUNCTION()
1060 RETVAL_LONG(mcrypt_enc_get_key_size(td)); in PHP_FUNCTION()
1061 mcrypt_module_close(td); in PHP_FUNCTION()
1078 MCRYPT td; in PHP_FUNCTION() local
1087 td = mcrypt_module_open(cipher, cipher_dir_string, module, module_dir_string); in PHP_FUNCTION()
1088 if (td != MCRYPT_FAILED) { in PHP_FUNCTION()
1089 RETVAL_LONG(mcrypt_enc_get_block_size(td)); in PHP_FUNCTION()
1090 mcrypt_module_close(td); in PHP_FUNCTION()
1107 MCRYPT td; in PHP_FUNCTION() local
1116 td = mcrypt_module_open(cipher, cipher_dir_string, module, module_dir_string); in PHP_FUNCTION()
1117 if (td != MCRYPT_FAILED) { in PHP_FUNCTION()
1118 RETVAL_LONG(mcrypt_enc_get_iv_size(td)); in PHP_FUNCTION()
1119 mcrypt_module_close(td); in PHP_FUNCTION()
1136 MCRYPT td; in PHP_FUNCTION() local
1147 td = mcrypt_module_open(cipher, cipher_dir_string, "ecb", module_dir_string); in PHP_FUNCTION()
1148 if (td != MCRYPT_FAILED) { in PHP_FUNCTION()
1149 cipher_name = mcrypt_enc_get_algorithms_name(td); in PHP_FUNCTION()
1150 mcrypt_module_close(td); in PHP_FUNCTION()
1154 td = mcrypt_module_open(cipher, cipher_dir_string, "stream", module_dir_string); in PHP_FUNCTION()
1155 if (td != MCRYPT_FAILED) { in PHP_FUNCTION()
1156 cipher_name = mcrypt_enc_get_algorithms_name(td); in PHP_FUNCTION()
1157 mcrypt_module_close(td); in PHP_FUNCTION()
1177 MCRYPT td; in php_mcrypt_do_crypt() local
1181 td = mcrypt_module_open(cipher, cipher_dir_string, mode, module_dir_string); in php_mcrypt_do_crypt() local
1182 if (td == MCRYPT_FAILED) { in php_mcrypt_do_crypt()
1187 max_key_length = mcrypt_enc_get_key_size(td); in php_mcrypt_do_crypt()
1191 key_length_sizes = mcrypt_enc_get_supported_key_sizes(td, &count); in php_mcrypt_do_crypt()
1219 iv_size = mcrypt_enc_get_iv_size (td); in php_mcrypt_do_crypt()
1222 if (mcrypt_enc_mode_has_iv(td) == 1) { in php_mcrypt_do_crypt()
1238 if (mcrypt_enc_is_block_mode(td) == 1) { /* It's a block algorithm */ in php_mcrypt_do_crypt()
1239 block_size = mcrypt_enc_get_block_size(td); in php_mcrypt_do_crypt()
1251 if (mcrypt_generic_init(td, key_s, use_key_length, iv_s) < 0) { in php_mcrypt_do_crypt()
1256 mcrypt_generic(td, data_s, data_size); in php_mcrypt_do_crypt()
1258 mdecrypt_generic(td, data_s, data_size); in php_mcrypt_do_crypt()
1264 mcrypt_generic_end(td); in php_mcrypt_do_crypt()