wickr-crypto-c

Functions
File Encryption With OpenSSL

## Functions
bool | openssl_aes256_file_encrypt (const wickr_cipher_key_t *key, const char *sourceFilePath, const char *destinationFilePath)
bool | openssl_aes256_file_decrypt (const wickr_cipher_key_t *key, const char *sourceFilePath, const char *destinationFilePath, bool only_auth_ciphers)

## Detailed Description

## Function Documentation

## ◆ openssl_aes256_file_decrypt()

bool openssl_aes256_file_decrypt | ( | const wickr_cipher_key_t * | key,
|  | const char * | sourceFilePath,
|  | const char * | destinationFilePath,
|  | bool | only_auth_ciphers
| ) |  |

Decrypt a file to another file

Utilizes a small amount of stack memory to decrypt a large file. This function is byte-format compatible with standard memory-based AES functions from this library.

Parameters

  key | the cipher key to use for the decryption operation
  sourceFilePath | the path to the source file to decrypt
  destinationFilePath | the location to save the decrypted file
  only_auth_ciphers | if true, only authenticated ciphers may be used for decryption

Returns
  true if the decryption succeeds, false if the sourceFilePath, or destinationFilePath is inaccessible, or the incorrect key is presented

## ◆ openssl_aes256_file_encrypt()

bool openssl_aes256_file_encrypt | ( | const wickr_cipher_key_t * | key,
|  | const char * | sourceFilePath,
|  | const char * | destinationFilePath
| ) |  |

Encrypt a file to another file

Utilizes a small amount of stack memory to encrypt a large file. This function is byte-format compatible with standard memory-based AES functions from this library.

Parameters

  key | the cipher key to use for the encryption operation
  sourceFilePath | the path to the source file to encrypt
  destinationFilePath | the location to save the encrypted file

Returns
  true if the encryption succeeds, false if the sourceFilePath, or destinationFilePath is inaccessible, or the encryption operation fails.