php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53532
Patch mdecrypt_generic revision 2010-12-13 01:10 UTC by x1v4nx at googlemail dot com
Patch mcrypt_ofb revision 2010-12-13 01:10 UTC by x1v4nx at googlemail dot com
Patch mcrypt_module_self_test revision 2010-12-13 01:10 UTC by x1v4nx at googlemail dot com
Patch mcrypt_module_open revision 2010-12-13 01:09 UTC by x1v4nx at googlemail dot com
Patch mcrypt_module_is_block_mode revision 2010-12-13 01:09 UTC by x1v4nx at googlemail dot com
Patch mcrypt_module_is_block_algorithm revision 2010-12-13 01:08 UTC by x1v4nx at googlemail dot com
Patch mcrypt_module_is_block_algorithm_mode revision 2010-12-13 01:08 UTC by x1v4nx at googlemail dot com
Patch mcrypt_module_get_supported_key_sizes revision 2010-12-13 01:07 UTC by x1v4nx at googlemail dot com
Patch mcrypt_module_close revision 2010-12-13 01:07 UTC by x1v4nx at googlemail dot com
Patch mcrypt_list_modes revision 2010-12-13 01:06 UTC by x1v4nx at googlemail dot com
Patch mcrypt_list_algorithms revision 2010-12-13 01:06 UTC by x1v4nx at googlemail dot com
Patch mcrypt_get_key_size revision 2010-12-13 01:05 UTC by x1v4nx at googlemail dot com
Patch mcrypt_get_iv_size revision 2010-12-13 01:05 UTC by x1v4nx at googlemail dot com
Patch mcrypt_get_cipher_name revision 2010-12-13 01:04 UTC by x1v4nx at googlemail dot com
Patch mcrypt_get_block_size revision 2010-12-13 01:04 UTC by x1v4nx at googlemail dot com
Patch mcrypt_generic_init revision 2010-12-13 01:03 UTC by x1v4nx at googlemail dot com
Patch mcrypt_encrypt revision 2010-12-13 01:02 UTC by x1v4nx at googlemail dot com
Patch mcrypt_enc_get_iv_size revision 2010-12-13 01:01 UTC by x1v4nx at googlemail dot com
Patch mcrypt_ecb revision 2010-12-13 01:01 UTC by x1v4nx at googlemail dot com
Patch mcrypt_decrypt revision 2010-12-13 01:00 UTC by x1v4nx at googlemail dot com
Patch mcrypt_create_iv revision 2010-12-13 00:59 UTC by x1v4nx at googlemail dot com
Patch mcrypt_cfb revision 2010-12-12 23:01 UTC by x1v4nx at googlemail dot com
Patch mcrypt_cbc revision 2010-12-12 23:00 UTC by x1v4nx at googlemail dot com

Patch mcrypt_get_key_size for mcrypt related Bug #53532

Patch version 2010-12-13 01:05 UTC

Return to Bug #53532 | Download this patch
Patch Revisions:

Developer: x1v4nx@googlemail.com

--- mcrypt-get-key-size.xml	2010-03-29 03:55:16.000000000 -0400
+++ mcrypt-get-key-size.xml.new	2010-12-11 19:18:32.000000000 -0500
@@ -3,7 +3,7 @@
 <refentry xml:id="function.mcrypt-get-key-size" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>mcrypt_get_key_size</refname>
-  <refpurpose>Get the key size of the specified cipher</refpurpose>
+  <refpurpose>Gets the key size of the specified cipher</refpurpose>
  </refnamediv>

  <refsect1 role="description">
@@ -27,32 +27,48 @@
    combination with an encryption mode).
   </para>
   <para>
-   This example shows how to use this function when linked against libmcrypt
-   2.4.x and 2.5.x. It is more useful to use the
-   <function>mcrypt_enc_get_key_size</function> function as this uses the
-   resource returned by <function>mcrypt_module_open</function>.
+   It is more useful to use the <function>mcrypt_enc_get_key_size</function>
+   function as this uses the resource returned by <function>mcrypt_module_open</function>.
+  </para>
+ </refsect1>

+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
    <example>
-    <title><function>mcrypt_get_key_size</function> example</title>
+    <title><function>mcrypt_get_key_size</function> Example</title>
     <programlisting role="php">
 <![CDATA[
 <?php
     echo mcrypt_get_key_size('tripledes', 'ecb');
 ?>
-
-Prints:
-24
 ]]>
     </programlisting>
+    <para>
+     The example above shows how to use this function when
+     linked against libmcrypt 2.4.x or 2.5.x.
+    </para>
+    &example.outputs;
+    <screen>
+<![CDATA[
+24
+]]>
+    </screen>
    </example>
   </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also: <function>mcrypt_get_block_size</function>,
-   <function>mcrypt_enc_get_key_size</function> and
-   <function>mcrypt_encrypt</function>.
+   <simplelist>
+    <member><function>mcrypt_get_block_size</function></member>
+    <member><function>mcrypt_enc_get_key_size</function></member>
+    <member><function>mcrypt_encrypt</function></member>
+   </simplelist>
   </para>
-
  </refsect1>
+
 </refentry>

 <!-- Keep this comment at the end of the file
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 07:01:32 2024 UTC