src/lib/crypto.c
bool crypto_digest_finalize(DIGEST *digest, uint8_t *dest, uint32_t *length)
{
   if (!EVP_DigestFinal(digest->ctx, dest, (unsigned int *)length)) {
      Dmsg0(150, "digest finalize failed\n");
      openssl_post_errors(digest->jcr, M_ERROR, _("OpenSSL digest finalize failed"));
      return false;
   } else {
      return true;
   }
}
/*
 * Finalize the data in digest, storing the result in dest and the result size
 * in length. The result size can be determined with crypto_digest_size().
 *
 * Returns: true on success
 *          false on failure
 */
Finalize the data in digest, storing the result in dest and the result size
in length. The result size can be determined with crypto_digest_size().

true on success
false on failure
Finalize the data in digest storing the result in dest and the result size in length . The result size can be determined with crypto_digest_size () . true on success false on failure
bool crypto_digest_finalize(DIGEST *digest, uint8_t *dest, uint32_t *length)
{
   if (!EVP_DigestFinal(digest->ctx, dest, (unsigned int *)length)) {
      Dmsg0(150, "digest finalize failed\n");
      openssl_post_errors(digest->jcr, M_ERROR, _("OpenSSL digest finalize failed"));
      return false;
   } else {
      return true;
   }
}
bool crypto_digest_finalize ( DIGEST * digest , uint8_t * dest , uint32_t * length ) { if ( ! EVP_DigestFinal ( digest -> ctx , dest , ( unsigned int * ) length ) ) { Dmsg0 ( 150 , " \n " ) ; openssl_post_errors ( digest -> jcr , M_ERROR , _ ( " " ) ) ; return false ; } else { return true ; } }
Finalize the data in digest, storing the result in dest and the result size
 in length.
Finalize the data in digest storing the result in dest and the result size in length .