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
|