src/lib/crypto.c
bool crypto_cipher_finalize (CIPHER_CONTEXT *cipher_ctx, uint8_t *dest, uint32_t *written)
{
   if (!EVP_CipherFinal_ex(cipher_ctx->ctx, (unsigned char *)dest, (int *) written)) {
      /* This really shouldn't fail */
      return false;
   } else {
      return true;
   }
}
/*
 * Finalize the cipher context, writing any remaining data and necessary padding
 * to dest, and the size in written.
 * The result size will either be one block of data or zero.
 *
 * Returns: true on success
 *          false on failure
 */
Finalize the cipher context, writing any remaining data and necessary padding
to dest, and the size in written.
The result size will either be one block of data or zero.

true on success
false on failure
Finalize the cipher context writing any remaining data and necessary padding to dest and the size in written . The result size will either be one block of data or zero . true on success false on failure
bool crypto_cipher_finalize (CIPHER_CONTEXT *cipher_ctx, uint8_t *dest, uint32_t *written)
{
   if (!EVP_CipherFinal_ex(cipher_ctx->ctx, (unsigned char *)dest, (int *) written)) {
      return false;
   } else {
      return true;
   }
}
bool crypto_cipher_finalize ( CIPHER_CONTEXT * cipher_ctx , uint8_t * dest , uint32_t * written ) { if ( ! EVP_CipherFinal_ex ( cipher_ctx -> ctx , ( unsigned char * ) dest , ( int * ) written ) ) { return false ; } else { return true ; } }
Finalize the cipher context, writing any remaining data and necessary padding
 to dest, and the size in written.
Finalize the cipher context writing any remaining data and necessary padding to dest and the size in written .
/* This really shouldn't fail */