diff options
author | William Wennerström <william@wstrm.dev> | 2020-06-28 12:17:21 +0200 |
---|---|---|
committer | William Wennerström <william@wstrm.dev> | 2020-11-16 21:58:08 +0100 |
commit | d5b1dc0eb6ee9c4caee6c73b9cf26133c875a1c8 (patch) | |
tree | 928dee2c32592dcff47ddd96f8320c4e09ffbd4d /src/omemo/crypto.h | |
parent | e9d58757825e542fe4ec15ce350c0df4192ec29d (diff) | |
download | profani-tty-d5b1dc0eb6ee9c4caee6c73b9cf26133c875a1c8.tar.gz |
Move setup for AESGCM to omemo/crypto
Diffstat (limited to 'src/omemo/crypto.h')
-rw-r--r-- | src/omemo/crypto.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/omemo/crypto.h b/src/omemo/crypto.h index 916486b7..34cbb82c 100644 --- a/src/omemo/crypto.h +++ b/src/omemo/crypto.h @@ -185,8 +185,9 @@ int aes128gcm_decrypt(unsigned char *plaintext, size_t ciphertext_len, const unsigned char *const iv, size_t iv_len, const unsigned char *const key, const unsigned char *const tag); -int aes256gcm_encrypt_file(FILE *in, FILE *out, off_t file_size, - unsigned char key[], unsigned char nonce[]); +char *aes256gcm_encrypt_file(FILE *in, FILE *out, off_t file_size, int *gcry_res); -int aes256gcm_decrypt_file(FILE *in, FILE *out, off_t file_size, - unsigned char key[], unsigned char nonce[]); +//int aes256gcm_decrypt_file(FILE *in, FILE *out, off_t file_size, +// unsigned char key[], unsigned char nonce[]); + +void aes256gcm_fragment_free(char *fragment); |