src/lib/crypto.c
bool crypto_digest_update(DIGEST *digest, const uint8_t *data, uint32_t length)
{
   if (EVP_DigestUpdate(digest->ctx, data, length) == 0) {
      Dmsg0(150, "digest update failed\n");
      openssl_post_errors(digest->jcr, M_ERROR, _("OpenSSL digest update failed"));
      return false;
   } else {
      return true;
   }
}
/*
 * Hash length bytes of data into the provided digest context.
 * Returns: true on success
 *          false on failure
 */
Hash length bytes of data into the provided digest context.
Returns: true on success
false on failure
Hash length bytes of data into the provided digest context . Returns : true on success false on failure
bool crypto_digest_update(DIGEST *digest, const uint8_t *data, uint32_t length)
{
   if (EVP_DigestUpdate(digest->ctx, data, length) == 0) {
      Dmsg0(150, "digest update failed\n");
      openssl_post_errors(digest->jcr, M_ERROR, _("OpenSSL digest update failed"));
      return false;
   } else {
      return true;
   }
}
bool crypto_digest_update ( DIGEST * digest , const uint8_t * data , uint32_t length ) { if ( EVP_DigestUpdate ( digest -> ctx , data , length ) == 0 ) { Dmsg0 ( 150 , " \n " ) ; openssl_post_errors ( digest -> jcr , M_ERROR , _ ( " " ) ) ; return false ; } else { return true ; } }
Hash length bytes of data into the provided digest context.
Hash length bytes of data into the provided digest context .