src/lib/crypto.c
bool crypto_cipher_update(CIPHER_CONTEXT *cipher_ctx, const uint8_t *data, uint32_t length, const uint8_t *dest, uint32_t *written)
{
   if (!EVP_CipherUpdate(cipher_ctx->ctx, (unsigned char *)dest, (int *)written, (const unsigned char *)data, length)) {
      /* This really shouldn't fail */
      return false;
   } else {
      return true;
   }
}
/*
 * Encrypt/Decrypt length bytes of data using the provided cipher context
 * Returns: true on success, number of bytes output in written
 *          false on failure
 */
Encrypt/Decrypt length bytes of data using the provided cipher context
Returns: true on success, number of bytes output in written
false on failure
Encrypt / Decrypt length bytes of data using the provided cipher context Returns : true on success number of bytes output in written false on failure
bool crypto_cipher_update(CIPHER_CONTEXT *cipher_ctx, const uint8_t *data, uint32_t length, const uint8_t *dest, uint32_t *written)
{
   if (!EVP_CipherUpdate(cipher_ctx->ctx, (unsigned char *)dest, (int *)written, (const unsigned char *)data, length)) {
      return false;
   } else {
      return true;
   }
}
bool crypto_cipher_update ( CIPHER_CONTEXT * cipher_ctx , const uint8_t * data , uint32_t length , const uint8_t * dest , uint32_t * written ) { if ( ! EVP_CipherUpdate ( cipher_ctx -> ctx , ( unsigned char * ) dest , ( int * ) written , ( const unsigned char * ) data , length ) ) { return false ; } else { return true ; } }
Encrypt/Decrypt length bytes of data using the provided cipher context
 Returns: true on success, number of bytes output in written
          false on failure
Encrypt / Decrypt length bytes of data using the provided cipher context Returns : true on success number of bytes output in written false on failure
/* This really shouldn't fail */