1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #ifndef PHP_MCRYPT_H
- #define PHP_MCRYPT_H
- #if HAVE_LIBMCRYPT
- #ifdef ZTS
- #include "TSRM.h"
- #endif
- extern zend_module_entry mcrypt_module_entry;
- #define mcrypt_module_ptr &mcrypt_module_entry
- PHP_FUNCTION(mcrypt_ecb);
- PHP_FUNCTION(mcrypt_cbc);
- PHP_FUNCTION(mcrypt_cfb);
- PHP_FUNCTION(mcrypt_ofb);
- PHP_FUNCTION(mcrypt_get_cipher_name);
- PHP_FUNCTION(mcrypt_get_block_size);
- PHP_FUNCTION(mcrypt_get_key_size);
- PHP_FUNCTION(mcrypt_create_iv);
- PHP_FUNCTION(mcrypt_list_algorithms);
- PHP_FUNCTION(mcrypt_list_modes);
- PHP_FUNCTION(mcrypt_get_iv_size);
- PHP_FUNCTION(mcrypt_encrypt);
- PHP_FUNCTION(mcrypt_decrypt);
- PHP_FUNCTION(mcrypt_module_open);
- PHP_FUNCTION(mcrypt_generic_init);
- PHP_FUNCTION(mcrypt_generic);
- PHP_FUNCTION(mdecrypt_generic);
- PHP_FUNCTION(mcrypt_generic_deinit);
- PHP_FUNCTION(mcrypt_enc_self_test);
- PHP_FUNCTION(mcrypt_enc_is_block_algorithm_mode);
- PHP_FUNCTION(mcrypt_enc_is_block_algorithm);
- PHP_FUNCTION(mcrypt_enc_is_block_mode);
- PHP_FUNCTION(mcrypt_enc_get_block_size);
- PHP_FUNCTION(mcrypt_enc_get_key_size);
- PHP_FUNCTION(mcrypt_enc_get_supported_key_sizes);
- PHP_FUNCTION(mcrypt_enc_get_iv_size);
- PHP_FUNCTION(mcrypt_enc_get_algorithms_name);
- PHP_FUNCTION(mcrypt_enc_get_modes_name);
- PHP_FUNCTION(mcrypt_module_self_test);
- PHP_FUNCTION(mcrypt_module_is_block_algorithm_mode);
- PHP_FUNCTION(mcrypt_module_is_block_algorithm);
- PHP_FUNCTION(mcrypt_module_is_block_mode);
- PHP_FUNCTION(mcrypt_module_get_algo_block_size);
- PHP_FUNCTION(mcrypt_module_get_algo_key_size);
- PHP_FUNCTION(mcrypt_module_get_supported_key_sizes);
- PHP_FUNCTION(mcrypt_module_close);
- ZEND_BEGIN_MODULE_GLOBALS(mcrypt)
- int le_h;
- char *modes_dir;
- char *algorithms_dir;
- int fd[2];
- ZEND_END_MODULE_GLOBALS(mcrypt)
- #ifdef ZTS
- # define MCG(v) TSRMG(mcrypt_globals_id, zend_mcrypt_globals *, v)
- #else
- # define MCG(v) (mcrypt_globals.v)
- #endif
- #else
- #define mcrypt_module_ptr NULL
- #endif
- #define phpext_mcrypt_ptr mcrypt_module_ptr
- #endif
|