td 2885 Zend/zend_operators.c static zend_always_inline void zend_memnstr_ex_pre(unsigned int td[], const char *needle, size_t needle_len, int reverse) /* {{{ */ { td 2889 Zend/zend_operators.c td[i] = needle_len + 1; td 2894 Zend/zend_operators.c td[(unsigned char)needle[i]] = i + 1; td 2898 Zend/zend_operators.c td[(unsigned char)needle[i]] = (int)needle_len - i; td 2906 Zend/zend_operators.c unsigned int td[256]; td 2914 Zend/zend_operators.c zend_memnstr_ex_pre(td, needle, needle_len, 0); td 2928 Zend/zend_operators.c p += td[(unsigned char)(p[needle_len])]; td 2937 Zend/zend_operators.c unsigned int td[256]; td 2945 Zend/zend_operators.c zend_memnstr_ex_pre(td, needle, needle_len, 1); td 2965 Zend/zend_operators.c p -= td[(unsigned char)(p[-1])]; td 49 ext/mcrypt/mcrypt.c MCRYPT td; td 62 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 68 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 73 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 78 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 82 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 86 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 90 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 94 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 98 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 102 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 106 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 110 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 114 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 118 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 122 ext/mcrypt/mcrypt.c ZEND_ARG_INFO(0, td) td 346 ext/mcrypt/mcrypt.c mcrypt_generic_deinit(pm->td); td 347 ext/mcrypt/mcrypt.c mcrypt_module_close(pm->td); td 505 ext/mcrypt/mcrypt.c MCRYPT td; td 514 ext/mcrypt/mcrypt.c td = mcrypt_module_open ( td 521 ext/mcrypt/mcrypt.c if (td == MCRYPT_FAILED) { td 526 ext/mcrypt/mcrypt.c pm->td = td; td 553 ext/mcrypt/mcrypt.c max_key_size = mcrypt_enc_get_key_size(pm->td); td 554 ext/mcrypt/mcrypt.c iv_size = mcrypt_enc_get_iv_size(pm->td); td 582 ext/mcrypt/mcrypt.c mcrypt_generic_deinit(pm->td); td 583 ext/mcrypt/mcrypt.c result = mcrypt_generic_init(pm->td, key_s, key_size, iv_s); td 637 ext/mcrypt/mcrypt.c if (mcrypt_enc_is_block_mode(pm->td) == 1) { /* It's a block algorithm */ td 638 ext/mcrypt/mcrypt.c block_size = mcrypt_enc_get_block_size(pm->td); td 650 ext/mcrypt/mcrypt.c mcrypt_generic(pm->td, ZSTR_VAL(data_str), data_size); td 683 ext/mcrypt/mcrypt.c if (mcrypt_enc_is_block_mode(pm->td) == 1) { /* It's a block algorithm */ td 684 ext/mcrypt/mcrypt.c block_size = mcrypt_enc_get_block_size(pm->td); td 696 ext/mcrypt/mcrypt.c mdecrypt_generic(pm->td, data_s, data_size); td 713 ext/mcrypt/mcrypt.c key_sizes = mcrypt_enc_get_supported_key_sizes(pm->td, &count); td 728 ext/mcrypt/mcrypt.c RETURN_LONG(mcrypt_enc_self_test(pm->td)); td 748 ext/mcrypt/mcrypt.c if (mcrypt_generic_deinit(pm->td) < 0) { td 763 ext/mcrypt/mcrypt.c if (mcrypt_enc_is_block_algorithm_mode(pm->td) == 1) { td 777 ext/mcrypt/mcrypt.c if (mcrypt_enc_is_block_algorithm(pm->td) == 1) { td 791 ext/mcrypt/mcrypt.c if (mcrypt_enc_is_block_mode(pm->td) == 1) { td 804 ext/mcrypt/mcrypt.c RETURN_LONG(mcrypt_enc_get_block_size(pm->td)); td 813 ext/mcrypt/mcrypt.c RETURN_LONG(mcrypt_enc_get_key_size(pm->td)); td 822 ext/mcrypt/mcrypt.c RETURN_LONG(mcrypt_enc_get_iv_size(pm->td)); td 833 ext/mcrypt/mcrypt.c name = mcrypt_enc_get_algorithms_name(pm->td); td 846 ext/mcrypt/mcrypt.c name = mcrypt_enc_get_modes_name(pm->td); td 1010 ext/mcrypt/mcrypt.c MCRYPT td; td 1019 ext/mcrypt/mcrypt.c td = mcrypt_module_open(cipher, cipher_dir_string, module, module_dir_string); td 1020 ext/mcrypt/mcrypt.c if (td != MCRYPT_FAILED) { td 1021 ext/mcrypt/mcrypt.c RETVAL_LONG(mcrypt_enc_get_key_size(td)); td 1022 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1039 ext/mcrypt/mcrypt.c MCRYPT td; td 1048 ext/mcrypt/mcrypt.c td = mcrypt_module_open(cipher, cipher_dir_string, module, module_dir_string); td 1049 ext/mcrypt/mcrypt.c if (td != MCRYPT_FAILED) { td 1050 ext/mcrypt/mcrypt.c RETVAL_LONG(mcrypt_enc_get_block_size(td)); td 1051 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1068 ext/mcrypt/mcrypt.c MCRYPT td; td 1077 ext/mcrypt/mcrypt.c td = mcrypt_module_open(cipher, cipher_dir_string, module, module_dir_string); td 1078 ext/mcrypt/mcrypt.c if (td != MCRYPT_FAILED) { td 1079 ext/mcrypt/mcrypt.c RETVAL_LONG(mcrypt_enc_get_iv_size(td)); td 1080 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1097 ext/mcrypt/mcrypt.c MCRYPT td; td 1108 ext/mcrypt/mcrypt.c td = mcrypt_module_open(cipher, cipher_dir_string, "ecb", module_dir_string); td 1109 ext/mcrypt/mcrypt.c if (td != MCRYPT_FAILED) { td 1110 ext/mcrypt/mcrypt.c cipher_name = mcrypt_enc_get_algorithms_name(td); td 1111 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1115 ext/mcrypt/mcrypt.c td = mcrypt_module_open(cipher, cipher_dir_string, "stream", module_dir_string); td 1116 ext/mcrypt/mcrypt.c if (td != MCRYPT_FAILED) { td 1117 ext/mcrypt/mcrypt.c cipher_name = mcrypt_enc_get_algorithms_name(td); td 1118 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1190 ext/mcrypt/mcrypt.c static int php_mcrypt_ensure_valid_key_size(MCRYPT td, int key_size) /* {{{ */ td 1193 ext/mcrypt/mcrypt.c int max_key_size = mcrypt_enc_get_key_size(td); td 1194 ext/mcrypt/mcrypt.c int *key_sizes = mcrypt_enc_get_supported_key_sizes(td, &key_size_count); td 1217 ext/mcrypt/mcrypt.c static int php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size) /* {{{ */ td 1219 ext/mcrypt/mcrypt.c if (mcrypt_enc_mode_has_iv(td) == 1) { td 1220 ext/mcrypt/mcrypt.c int expected_iv_size = mcrypt_enc_get_iv_size(td); td 1252 ext/mcrypt/mcrypt.c MCRYPT td; td 1256 ext/mcrypt/mcrypt.c td = mcrypt_module_open(cipher, cipher_dir_string, mode, module_dir_string); td 1257 ext/mcrypt/mcrypt.c if (td == MCRYPT_FAILED) { td 1262 ext/mcrypt/mcrypt.c if (php_mcrypt_ensure_valid_key_size(td, (int)key_len) == FAILURE) { td 1263 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1267 ext/mcrypt/mcrypt.c if (php_mcrypt_ensure_valid_iv(td, iv, (int)iv_len) == FAILURE) { td 1268 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1273 ext/mcrypt/mcrypt.c if (mcrypt_enc_is_block_mode(td) == 1) { /* It's a block algorithm */ td 1274 ext/mcrypt/mcrypt.c int block_size = mcrypt_enc_get_block_size(td); td 1285 ext/mcrypt/mcrypt.c if (mcrypt_generic_init(td, (void *) key, (int)key_len, (void *) iv) < 0) { td 1287 ext/mcrypt/mcrypt.c mcrypt_module_close(td); td 1292 ext/mcrypt/mcrypt.c mcrypt_generic(td, data_s, (int)data_size); td 1294 ext/mcrypt/mcrypt.c mdecrypt_generic(td, data_s, (int)data_size); td 1303 ext/mcrypt/mcrypt.c mcrypt_generic_end(td);