From 3fa6821a10e1deab20ce4fd3242c5fb1fa7500ba Mon Sep 17 00:00:00 2001 From: Ron Chmara Date: Sat, 30 Sep 2000 17:11:38 +0000 Subject: [PATCH] Updated funcproto's for 2.4. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@33191 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mcrypt.xml | 43 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/functions/mcrypt.xml b/functions/mcrypt.xml index 71e684ef70..2e40511583 100644 --- a/functions/mcrypt.xml +++ b/functions/mcrypt.xml @@ -419,14 +419,24 @@ TripleDES int mcrypt_get_block_size int cipher + + int mcrypt_get_block_size + string cipher + string module + + + The first prototype is when linked against libmcrypt 2.2.x, the + second when linked against libmcrypt 2.4.x. + Mcrypt_get_block_size is used to get the size of a block of the specified cipher. - Mcrypt_get_block_size takes one argument, the - cipher and returns the size in bytes. + Mcrypt_get_block_size takes one or two + arguments, the cipher and + module, and returns the size in bytes. See also: mcrypt_get_key_size. @@ -446,14 +456,24 @@ TripleDES int mcrypt_get_key_size int cipher + + int mcrypt_get_key_size + string cipher + string module + + + The first prototype is when linked against libmcrypt 2.2.x, the + second when linked against libmcrypt 2.4.x. + Mcrypt_get_key_size is used to get the size of a key of the specified cipher. - mcrypt_get_key_size takes one argument, the - cipher and returns the size in bytes. + Mcrypt_get_key_size takes one or two + arguments, the cipher and + module, and returns the size in bytes. See also: mcrypt_get_block_size. @@ -879,11 +899,19 @@ foreach ($modes as $mode) { string cipher string mode + + int mcrypt_get_iv_size + resource td + + + The first prototype is when linked against libmcrypt 2.2.x, the + second when linked against libmcrypt 2.4.x. + Mcrypt_get_iv_size returns the size of - the Initialisation Vector (IV). On error the function returns - FALSE. If the IV is ignored in the specified cipher/mode + the Initialisation Vector (IV) in bytes. On error the function + returns FALSE. If the IV is ignored in the specified cipher/mode combination zero is returned. @@ -895,6 +923,9 @@ foreach ($modes as $mode) { constants of one of "ecb", "cbc", "cfb", "ofb", "nofb" or "stream". + + Td is the algorithm specified. +