18 lines
436 B
C
18 lines
436 B
C
enum aeadType {
|
|
aeadTypeChacha = 1,
|
|
aeadTypeGcm = 2,
|
|
};
|
|
|
|
int aead_seal(
|
|
const enum aeadType cipherId,
|
|
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);
|