<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.openssl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.openssl-cipher-iv-length.php',
    1 => 'openssl_cipher_iv_length',
    2 => 'R&eacute;cup&egrave;re la longueur cipher iv',
  ),
  'up' => 
  array (
    0 => 'ref.openssl.php',
    1 => 'Fonctions OpenSSL',
  ),
  'prev' => 
  array (
    0 => 'ref.openssl.php',
    1 => 'Fonctions OpenSSL',
  ),
  'next' => 
  array (
    0 => 'function.openssl-cipher-key-length.php',
    1 => 'openssl_cipher_key_length',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/openssl/functions/openssl-cipher-iv-length.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.openssl-cipher-iv-length" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openssl_cipher_iv_length</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.3, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">openssl_cipher_iv_length</span> &mdash; <span class="dc-title">Récupère la longueur cipher iv</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.openssl-cipher-iv-length-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>openssl_cipher_iv_length</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$cipher_algo</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Récupère la longueur cipher du vecteur d&#039;initialisation.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.openssl-cipher-iv-length-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">cipher_algo</code></dt>
    <dd>
     <p class="para">
      La méthode cipher, voir la fonction
      <span class="function"><a href="function.openssl-get-cipher-methods.php" class="function">openssl_get_cipher_methods()</a></span> pour une liste de valeurs
      potentielles.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openssl-cipher-iv-length-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne la longueur cipher en cas de succès,
   ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient. 
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.openssl-cipher-iv-length-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
   Émet une erreur de niveau <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> lorsque
   l&#039;algorithme cipher est inconnu.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.openssl-cipher-iv-length-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="openssl-cipher-iv-length.example.basic">
   <p><strong>Exemple #1 Exemple avec <span class="function"><strong>openssl_cipher_iv_length()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$method </span><span style="color: #007700">= </span><span style="color: #DD0000">'AES-128-CBC'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$ivlen </span><span style="color: #007700">= </span><span style="color: #0000BB">openssl_cipher_iv_length</span><span style="color: #007700">(</span><span style="color: #0000BB">$method</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$ivlen</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Résultat de l&#039;exemple ci-dessus est similaire à :</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">16</pre>
</div>
   </div>
  </div>
 </div>


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