mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
literalized \0 <literal>\0</literal>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@49209 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ec801c0f74
commit
d8a06ae073
1 changed files with 7 additions and 7 deletions
|
@ -966,14 +966,14 @@ foreach ($modes as $mode) {
|
|||
<para>
|
||||
<parameter>Key</parameter> 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 '<literal>\0</literal>'. 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.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>Data</parameter> 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 '<literal>\0</literal>'. The returned
|
||||
crypttext can be larger that the size of the data that is given
|
||||
by <parameter>data</parameter>.
|
||||
</para>
|
||||
|
@ -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 '<literal>\0</literal>'.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
|
@ -1045,12 +1045,12 @@ echo strlen ($crypttext)."\n";
|
|||
<para>
|
||||
<parameter>Key</parameter> 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 '<literal>\0</literal>'.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>Data</parameter> 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 '<literal>\0</literal>'.
|
||||
</para>
|
||||
<para>
|
||||
<parameter>Mode</parameter> 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 '<literal>\0</literal>'.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1168,7 +1168,7 @@ $td = mcrypt_module_open (MCRYPT_DES, "", MCRYPT_MODE_ECB, "/usr/lib/mcrypt-mode
|
|||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
This function encrypts data. The data is padded with "\0"
|
||||
This function encrypts data. The data is padded with "<literal>\0</literal>"
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue