2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:57:45 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-30 13:15:56 +00:00
|
|
|
<refentry xml:id="function.mcrypt-enc-get-modes-name" xmlns="http://docbook.org/ns/docbook">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mcrypt_enc_get_modes_name</refname>
|
|
|
|
<refpurpose>Returns the name of the opened mode</refpurpose>
|
|
|
|
</refnamediv>
|
2017-01-07 15:28:16 +00:00
|
|
|
<refsynopsisdiv>
|
|
|
|
&warn.deprecated.function-7-1-0;
|
|
|
|
</refsynopsisdiv>
|
2007-12-30 23:52:00 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-12-30 13:15:56 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>string</type><methodname>mcrypt_enc_get_modes_name</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>td</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
This function returns the name of the mode.
|
|
|
|
</para>
|
2007-12-30 23:52:00 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>td</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-03-09 16:31:24 +00:00
|
|
|
The encryption descriptor.
|
2007-12-30 23:52:00 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns the name as a string.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-12-30 13:15:56 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>mcrypt_enc_get_modes_name</function> example</title>
|
|
|
|
<programlisting role="php">
|
2002-05-12 21:00:20 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2007-12-30 23:52:00 +00:00
|
|
|
$td = mcrypt_module_open (MCRYPT_CAST_256, '', MCRYPT_MODE_CFB, '');
|
|
|
|
echo mcrypt_enc_get_modes_name($td). "\n";
|
2007-12-30 13:15:56 +00:00
|
|
|
|
2007-12-30 23:52:00 +00:00
|
|
|
$td = mcrypt_module_open ('cast-256', '', 'ecb', '');
|
|
|
|
echo mcrypt_enc_get_modes_name($td). "\n";
|
2002-05-12 21:00:20 +00:00
|
|
|
?>
|
2003-12-15 16:55:22 +00:00
|
|
|
]]>
|
2007-12-30 13:15:56 +00:00
|
|
|
</programlisting>
|
2007-12-30 23:52:00 +00:00
|
|
|
&example.outputs;
|
2007-12-30 13:15:56 +00:00
|
|
|
<screen>
|
2003-12-15 16:55:22 +00:00
|
|
|
<![CDATA[
|
2002-05-12 21:00:20 +00:00
|
|
|
CFB
|
|
|
|
ECB
|
|
|
|
]]>
|
2007-12-30 13:15:56 +00:00
|
|
|
</screen>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|