wickr-crypto-c
src
wickrcrypto
include
wickrcrypto
openssl_file_suite.h
1
/*
2
* Copyright © 2012-2018 Wickr Inc. All rights reserved.
3
*
4
* This code is being released for EDUCATIONAL, ACADEMIC, AND CODE REVIEW PURPOSES
5
* ONLY. COMMERCIAL USE OF THE CODE IS EXPRESSLY PROHIBITED. For additional details,
6
* please see LICENSE
7
*
8
* THE CODE IS MADE AVAILABLE "AS-IS" AND WITHOUT ANY EXPRESS OR
9
* IMPLIED GUARANTEES AS TO FITNESS, MERCHANTABILITY, NON-
10
* INFRINGEMENT OR OTHERWISE. IT IS NOT BEING PROVIDED IN TRADE BUT ON
11
* A VOLUNTARY BASIS ON BEHALF OF THE AUTHOR’S PART FOR THE BENEFIT
12
* OF THE LICENSEE AND IS NOT MADE AVAILABLE FOR CONSUMER USE OR ANY
13
* OTHER USE OUTSIDE THE TERMS OF THIS LICENSE. ANYONE ACCESSING THE
14
* CODE SHOULD HAVE THE REQUISITE EXPERTISE TO SECURE THEIR SYSTEM
15
* AND DEVICES AND TO ACCESS AND USE THE CODE FOR REVIEW PURPOSES
16
* ONLY. LICENSEE BEARS THE RISK OF ACCESSING AND USING THE CODE. IN
17
* PARTICULAR, AUTHOR BEARS NO LIABILITY FOR ANY INTERFERENCE WITH OR
18
* ADVERSE EFFECT THAT MAY OCCUR AS A RESULT OF THE LICENSEE
19
* ACCESSING AND/OR USING THE CODE ON LICENSEE’S SYSTEM.
20
*/
21
22
#ifndef openssl_file_suite_h
23
#define openssl_file_suite_h
24
25
#include <stdlib.h>
26
#include <stdio.h>
27
#include "buffer.h"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
48
bool
openssl_aes256_file_encrypt
(
const
wickr_cipher_key_t
*key,
const
char
*sourceFilePath,
const
char
*destinationFilePath);
49
64
bool
openssl_aes256_file_decrypt
(
const
wickr_cipher_key_t
*key,
const
char
*sourceFilePath,
const
char
*destinationFilePath,
bool
only_auth_ciphers);
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
/* openssl_file_suite_h */
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)
openssl_aes256_file_encrypt
bool openssl_aes256_file_encrypt(const wickr_cipher_key_t *key, const char *sourceFilePath, const char *destinationFilePath)
wickr_cipher_key
Definition:
cipher.h:189
Generated by
1.8.15