From c535fc7a3246c6a811f9a10d8fe18105edb70197 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 15 Nov 2006 22:51:45 +0000 Subject: - unicode upgrade - fix typo: ENIGNA->ENIGMA - add and fix tests --- ext/mcrypt/php_mcrypt.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ext/mcrypt/php_mcrypt.h') diff --git a/ext/mcrypt/php_mcrypt.h b/ext/mcrypt/php_mcrypt.h index 871e96f6e5..3dafc9b490 100644 --- a/ext/mcrypt/php_mcrypt.h +++ b/ext/mcrypt/php_mcrypt.h @@ -30,6 +30,20 @@ extern zend_module_entry mcrypt_module_entry; #define mcrypt_module_ptr &mcrypt_module_entry +typedef enum { + PHP_MCRYPT_IV_SOURCE_RANDOM = 0, + PHP_MCRYPT_IV_SOURCE_URANDOM, + PHP_MCRYPT_IV_SOURCE_RAND +} php_mcrypt_iv_source; + +typedef enum { + PHP_MCRYPT_ENCRYPT = 0, + PHP_MCRYPT_DECRYPT = 1, +} php_mcrypt_op; + +int php_mcrypt_iv(php_mcrypt_iv_source source, int size, char **iv_str, int *iv_len TSRMLS_DC); +int php_mcrypt_func(php_mcrypt_op op, char *cipher, char *mode, char *key_str, int key_len, char *iv_str, int iv_len, char *data_str, int data_len, char **data_copy, int *data_size TSRMLS_DC); + /* Functions for both old and new API */ PHP_FUNCTION(mcrypt_ecb); PHP_FUNCTION(mcrypt_cbc); -- cgit v1.2.1