<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.hash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.hash-update.php',
    1 => 'hash_update',
    2 => 'A&ntilde;ade datos en el contexto de hash activo',
  ),
  'up' => 
  array (
    0 => 'ref.hash.php',
    1 => 'Funciones de hash',
  ),
  'prev' => 
  array (
    0 => 'function.hash-pbkdf2.php',
    1 => 'hash_pbkdf2',
  ),
  'next' => 
  array (
    0 => 'function.hash-update-file.php',
    1 => 'hash_update_file',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/hash/functions/hash-update.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.hash-update" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">hash_update</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PHP 8, PECL hash &gt;= 1.1)</p><p class="refpurpose"><span class="refname">hash_update</span> &mdash; <span class="dc-title">Añade datos en el contexto de hash activo</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hash-update-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>hash_update</strong></span>(<span class="methodparam"><span class="type"><a href="class.hashcontext.php" class="type HashContext">HashContext</a></span> <code class="parameter">$context</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="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>


 </div>

 <div class="refsect1 parameters" id="refsect1-function.hash-update-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">context</code></dt>
     <dd>
      <p class="para">
       Contexto de hash devuelto por <span class="function"><a href="function.hash-init.php" class="function">hash_init()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">data</code></dt>
     <dd>
      <p class="para">
       Mensaje que será incluido en la huella de hash.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.hash-update-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
    Retorna siempre <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.hash-update-changelog">
  <h3 class="title">Historial de cambios</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versión</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        Posee ahora un tipo de retorno <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span> en lugar de
        <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>.
       </td>
      </tr>

      <tr>
       <td>7.2.0</td>
       <td>
        Acepta una <span class="classname"><a href="class.hashcontext.php" class="classname">HashContext</a></span> en lugar de un recurso.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.hash-update-seealso">
  <h3 class="title">Ver también</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.hash-init.php" class="function" rel="rdfs-seeAlso">hash_init()</a> - Inicializa un contexto de hachado incremental</span></li>
    <li><span class="function"><a href="function.hash-update-file.php" class="function" rel="rdfs-seeAlso">hash_update_file()</a> - Se a&ntilde;aden datos en un contexto de hash activo a partir de un fichero</span></li>
    <li><span class="function"><a href="function.hash-update-stream.php" class="function" rel="rdfs-seeAlso">hash_update_stream()</a> - Introduce datos en un contexto de hash activo desde un flujo abierto</span></li>
    <li><span class="function"><a href="function.hash-final.php" class="function" rel="rdfs-seeAlso">hash_final()</a> - Finaliza un hachaje incremental y devuelve el resultado de la huella digital</span></li>
   </ul>
  </p>
 </div>


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