Fixed typo: s/mcrypt_open_module/mcrypt_module_open/g in mcrypt.xml

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32710 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2000-09-14 23:18:21 +00:00
parent 81104b4139
commit 97e526fbdf

View file

@ -60,7 +60,7 @@ $encrypted_data = mcrypt_ecb (MCRYPT_TripleDES, $key, $input, MCRYPT_ENCRYPT);
$key = "this is a very secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
$td = mcrypt_open_module (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB);
$td = mcrypt_module_open (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND);
mcrypt_generic_init ($td, $key, $iv);
$encrypted_data = mcrypt_generic ($td, $input);
@ -134,7 +134,7 @@ mcrypt_generic_end ($td);
mcrypt-2.2.x API is that you can access the cipher from PHP with
MCRYPT_ciphername. With the mcrypt-2.4.x API these constants also
work, but it is possible to specify the name of the cipher as
a string with a call to <function>mcrypt_open_module</function>.
a string with a call to <function>mcrypt_module_open</function>.
</para>
<para>
Here is a short list of ciphers which are currently supported by