<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.rnp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.rnp-op-verify-detached.php',
    1 => 'rnp_op_verify_detached',
    2 => 'Verify detached signatures',
  ),
  'up' => 
  array (
    0 => 'ref.rnp.php',
    1 => 'Rnp İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.rnp-op-verify.php',
    1 => 'rnp_op_verify',
  ),
  'next' => 
  array (
    0 => 'function.rnp-save-keys.php',
    1 => 'rnp_save_keys',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rnp/functions/rnp-op-verify-detached.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.rnp-op-verify-detached" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">rnp_op_verify_detached</h1>
  <p class="verinfo">(PECL rnp &gt;= 0.1.1)</p><p class="refpurpose"><span class="refname">rnp_op_verify_detached</span> &mdash; <span class="dc-title">Verify detached signatures</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.rnp-op-verify-detached-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>rnp_op_verify_detached</strong></span>(<span class="methodparam"><span class="type"><a href="class.rnpffi.php" class="type RnpFFI">RnpFFI</a></span> <code class="parameter">$ffi</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$signature</code></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">

  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.rnp-op-verify-detached-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">ffi</code></dt>
    <dd>
     <span class="simpara">
      rnp_ffi_create tarafından döndürülen FFI nesnesi.
     </span>
    </dd>
   
   
    <dt><code class="parameter">data</code></dt>
    <dd>
     <span class="simpara">
      Source data.
     </span>
    </dd>
   
   
    <dt><code class="parameter">signature</code></dt>
    <dd>
     <span class="simpara">
      Detached signature data.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.rnp-op-verify-detached-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   An associative array with information about verification results başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Key</th>
      <th>Data type</th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><code class="literal">&quot;verification_status&quot;</code></td>
      <td>string</td>
      <td>
       Overall verification result, either &quot;Success&quot; string or appropriate error message.
       &quot;Success&quot; result is set when at least one signature is valid and successfully verified.
       Individual verification results for each signature can be checked in the &quot;signatures&quot; array.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;file_name&quot;</code></td>
      <td>string</td>
      <td>File name.</td>
     </tr>

     <tr>
      <td><code class="literal">&quot;file_mtime&quot;</code></td>
      <td>integer</td>
      <td>File modification time.</td>
     </tr>

     <tr>
      <td><code class="literal">&quot;mode&quot;</code></td>
      <td>string</td>
      <td>Data protection (encryption) mode used in processed message.
      Currently defined values are &quot;none&quot;, &quot;cfb&quot;, &quot;cfb-mdc&quot;, &quot;aead-ocb&quot;, &quot;aead-eax&quot;.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;cipher&quot;</code></td>
      <td>string</td>
      <td>Symmetric cipher used for data encryption.</td>
     </tr>

     <tr>
      <td><code class="literal">&quot;valid_integrity&quot;</code></td>
      <td>boolean</td>
      <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if message integrity protection was used (i.e. MDC or AEAD) and it was
      validated successfully.
      </td>
     </tr>

     <tr>
      <td><code class="literal">&quot;signatures&quot;</code></td>
      <td>array</td>
      <td>
       An associative array describing each signature found. See description below.
      </td>
     </tr>

    </tbody>
   
  </table>

  <p class="simpara">
   &quot;signatures&quot; sub-array.
  </p>
  <table class="doctable informaltable">
  
   <thead>
    <tr>
     <th>Key</th>
     <th>Data type</th>
     <th>Açıklama</th>
    </tr>

   </thead>

  <tbody class="tbody">
   <tr>
    <td>&quot;verification_status&quot;</td>
    <td>string</td>
    <td>Signature verification status, either &quot;Success&quot; string or appropriate error message.</td>
   </tr>

   <tr>
    <td>&quot;creation_time&quot;</td>
    <td>integer</td>
    <td>Signature creation time in seconds since Jan, 1 1970 UTC.</td>
   </tr>

   <tr>
    <td>&quot;expiration_time&quot;</td>
    <td>integer</td>
    <td>Signature expiration time in seconds since the creation time or 0 if signature never expires.</td>
   </tr>

   <tr>
    <td>&quot;hash&quot;</td>
    <td>string</td>
    <td>Hash function algorithm used to calculate the signature.</td>
   </tr>

   <tr>
    <td>&quot;signing_key&quot;</td>
    <td>string</td>
    <td>Fingerprint of the key used for signing. Could be &quot;Not found&quot; if corresponding public key is not loaded to the FFI object.</td>
   </tr>

   <tr>
    <td>&quot;signature_type&quot;</td>
    <td>string</td>
    <td>
     Signature type. Currently defined values are: &#039;binary&#039;, &#039;text&#039;, &#039;standalone&#039;, &#039;certification (generic)&#039;, &#039;certification (persona)&#039;,
     &#039;certification (casual)&#039;, &#039;certification (positive)&#039;, &#039;subkey binding&#039;, &#039;primary key binding&#039;, &#039;direct&#039;, &#039;key revocation&#039;,
     &#039;subkey revocation&#039;, &#039;certification revocation&#039;, &#039;timestamp&#039;, &#039;uknown: 0..255&#039;.
    </td>
   </tr>

  </tbody>
  
  </table>

 </div>



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