From d8a06ae073b4a0ed3ee05ae7a0d3384e046bf32d Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Tue, 5 Jun 2001 13:03:11 +0000 Subject: [PATCH] literalized \0 \0 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@49209 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mcrypt.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/functions/mcrypt.xml b/functions/mcrypt.xml index 87b710512d..12aee0811c 100644 --- a/functions/mcrypt.xml +++ b/functions/mcrypt.xml @@ -966,14 +966,14 @@ foreach ($modes as $mode) { Key is the key with which the data will be encrypted. If it's smaller that the required keysize, it - is padded with '\0'. It is better not to use ASCII strings for + is padded with '\0'. It is better not to use ASCII strings for keys. It is recommended to use the mhash functions to create a key from a string. Data is the data that will be encrypted with the given cipher and mode. If the size of the data is not - n * blocksize, the data will be padded with '\0'. The returned + n * blocksize, the data will be padded with '\0'. The returned crypttext can be larger that the size of the data that is given by data. @@ -987,7 +987,7 @@ foreach ($modes as $mode) { initialisation in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If you do not supply an IV, while it is needed for an algorithm, the function issues a warning and uses an - IV with all bytes set to '\0'. + IV with all bytes set to '\0'. @@ -1045,12 +1045,12 @@ echo strlen ($crypttext)."\n"; Key is the key with which the data is encrypted. If it's smaller that the required keysize, it - is padded with '\0'. + is padded with '\0'. Data is the data that will be decrypted with the given cipher and mode. If the size of the data is not - n * blocksize, the data will be padded with '\0'. + n * blocksize, the data will be padded with '\0'. Mode is one of the MCRYPT_MODE_modename @@ -1062,7 +1062,7 @@ echo strlen ($crypttext)."\n"; initialisation in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If you do not supply an IV, while it is needed for an algorithm, the function issues a warning and uses an - IV with all bytes set to '\0'. + IV with all bytes set to '\0'. @@ -1168,7 +1168,7 @@ $td = mcrypt_module_open (MCRYPT_DES, "", MCRYPT_MODE_ECB, "/usr/lib/mcrypt-mode - This function encrypts data. The data is padded with "\0" + This function encrypts data. The data is padded with "\0" to make sure the length of the data is n * blocksize. This function returns the encrypted data. Note that the length of the returned string can in fact be longer then the input,