38#ifndef OPENSSL_ENCRYPT_H_
39#define OPENSSL_ENCRYPT_H_
56#define MAX_CRYPTO_EXTRA_DATA 36
57#define MAX_CRYPTO_PAD 15
58#define MAX_CRYPTO_EXCEED (MAX_CRYPTO_EXTRA_DATA + MAX_CRYPTO_PAD)
60#define OPENSSL_ENCRYPT_ABI_VERSION 1
73 const char *passphrase);
93 char *plaintext,
int plaintext_len,
char *aad,
int aad_len,
char *ciphertext);
const EVP_CIPHER *(* get_cipher)(void)
openssl_mode
only GCM provides autenticity, other modes only check integrity (CRC)
void(* destroy)(struct openssl_encrypt *state)
int(* get_overhead)(struct openssl_encrypt *encryption)
int(* encrypt)(struct openssl_encrypt *encryption, char *plaintext, int plaintext_len, char *aad, int aad_len, char *ciphertext)
enum openssl_mode(* get_cipher)(struct openssl_encrypt *encryption)
int(* init)(struct openssl_encrypt **state, const char *passphrase)