2021-09-04 11:41:56 +02:00
|
|
|
#include <openssl/evp.h>
|
2021-09-03 17:11:57 +02:00
|
|
|
|
2021-09-04 11:41:56 +02:00
|
|
|
int openssl_aead_seal(
|
|
|
|
const EVP_CIPHER* evpCipher,
|
2021-09-03 17:11:57 +02:00
|
|
|
const unsigned char* const plaintext,
|
|
|
|
const int plaintextLen,
|
|
|
|
const unsigned char* const authData,
|
|
|
|
const int authDataLen,
|
|
|
|
const unsigned char* const key,
|
|
|
|
const int keyLen,
|
|
|
|
const unsigned char* const iv,
|
|
|
|
const int ivLen,
|
|
|
|
unsigned char* const ciphertext,
|
|
|
|
const int ciphertextBufLen);
|
2021-09-03 18:44:41 +02:00
|
|
|
|
2021-09-04 11:41:56 +02:00
|
|
|
int openssl_aead_open(
|
|
|
|
const EVP_CIPHER* evpCipher,
|
2021-09-03 18:44:41 +02:00
|
|
|
const unsigned char* const ciphertext,
|
|
|
|
const int ciphertextLen,
|
|
|
|
const unsigned char* const authData,
|
|
|
|
const int authDataLen,
|
|
|
|
unsigned char* const tag,
|
|
|
|
const int tagLen,
|
|
|
|
const unsigned char* const key,
|
|
|
|
const int keyLen,
|
|
|
|
const unsigned char* const iv,
|
|
|
|
const int ivLen,
|
|
|
|
unsigned char* const plaintext,
|
|
|
|
const int plaintextBufLen);
|
2021-09-05 12:17:38 +02:00
|
|
|
|
|
|
|
void noop_c_function(void);
|