summaryrefslogtreecommitdiff
path: root/internal/stupidgcm/chacha.h
blob: 780350ac89723a376951415c0e106497154e1aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);