<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mcrypt.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.mcrypt-module-get-supported-key-sizes.php',
    1 => 'mcrypt_module_get_supported_key_sizes',
    2 => 'Returns an array with the supported keysizes of the opened algorithm',
  ),
  'up' => 
  array (
    0 => 'ref.mcrypt.php',
    1 => 'Mcrypt Functions',
  ),
  'prev' => 
  array (
    0 => 'function.mcrypt-module-get-algo-key-size.php',
    1 => 'mcrypt_module_get_algo_key_size',
  ),
  'next' => 
  array (
    0 => 'function.mcrypt-module-is-block-algorithm.php',
    1 => 'mcrypt_module_is_block_algorithm',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mcrypt/functions/mcrypt-module-get-supported-key-sizes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mcrypt-module-get-supported-key-sizes" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mcrypt_module_get_supported_key_sizes</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5, PHP 7 &lt; 7.2.0, PECL mcrypt &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">mcrypt_module_get_supported_key_sizes</span> &mdash; <span class="dc-title">Returns an array with the supported keysizes of the opened algorithm</span></p>

 </div>
 <div id="function.mcrypt-module-get-supported-key-sizes-refsynopsisdiv">
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function has been
<em>DEPRECATED</em> as of PHP 7.1.0 and
<em>REMOVED</em> as of PHP 7.2.0. Relying on this function
is highly discouraged.</p></div>
 </div>
 <div class="refsect1 description" id="refsect1-function.mcrypt-module-get-supported-key-sizes-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mcrypt_module_get_supported_key_sizes</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$algorithm</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$lib_dir</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="simpara">
   Returns an array with the key sizes supported by the specified algorithm.
   If it returns an empty array then all key sizes between 1 and
   <span class="function"><a href="function.mcrypt-module-get-algo-key-size.php" class="function">mcrypt_module_get_algo_key_size()</a></span> are supported by the
   algorithm.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.mcrypt-module-get-supported-key-sizes-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">algorithm</code></dt>
    <dd>
     <span class="simpara">
      The algorithm to be used.
     </span>
    </dd>
   
   
    <dt><code class="parameter">lib_dir</code></dt>
    <dd>
     <span class="simpara">
      The optional <code class="parameter">lib_dir</code> parameter can contain the
      location where the algorithm module is on the system.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mcrypt-module-get-supported-key-sizes-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns an array with the key sizes supported by the specified algorithm.
   If it returns an empty array then all key sizes between 1 and
   <span class="function"><a href="function.mcrypt-module-get-algo-key-size.php" class="function">mcrypt_module_get_algo_key_size()</a></span> are supported by the
   algorithm.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mcrypt-module-get-supported-key-sizes-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.mcrypt-enc-get-supported-key-sizes.php" class="function" rel="rdfs-seeAlso">mcrypt_enc_get_supported_key_sizes()</a> - Returns an array with the supported keysizes of the opened algorithm</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>