Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 4988

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Gets the cipher iv length</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.openssl.html">OpenSSL Functions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.openssl-csr-export-to-file.html">openssl_csr_export_to_file</a></div>
 <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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;= PHP 5.3.3)</p><p class="refpurpose"><span class="refname">openssl_cipher_iv_length</span> &mdash; <span class="dc-title">Gets the cipher iv length</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="type">int</span> <span class="methodname"><strong>openssl_cipher_iv_length</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$method</code></span>
   )</div>

  <p class="para rdfs-comment">
   Gets the cipher iv length.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.openssl-cipher-iv-length-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term"><em><code class="parameter">method</code></em></span>
    <dd>

     <p class="para">
      The method.
     </p>
    </dd>

   </dt>

  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openssl-cipher-iv-length-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the cipher length on success, or <strong><code>FALSE</code></strong> on failure. 
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.openssl-cipher-iv-length-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   Emits an <strong><code>E_WARNING</code></strong> level error when the cipher algorithm
   is unknown.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.openssl-cipher-iv-length-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="openssl-cipher-iv-length.example.basic">
   <p><strong>Example #1  <span class="function"><strong>openssl_cipher_iv_length()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$method&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'AES-128-CBC'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$ivlen&nbsp;</span><span style="color: #007700">=&nbsp;</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&nbsp;</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>The above example will output
something similar to:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
16
</pre></div>
   </div>
  </div>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.openssl.html">OpenSSL Functions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.openssl-csr-export-to-file.html">openssl_csr_export_to_file</a></div>
 <div class="up"><a href="ref.openssl.html">OpenSSL Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>