blob: 4cf6f2efb7e9ab7ddcd20af6624f33ad13cb4394 [file] [log] [blame]
developer70436792023-05-19 09:31:20 +08001#ifndef AESGCM_H
2#define AESGCM_H
3#include "common.h"
4int gcm_init(void);
5int gcm_encrypt(void);
6int gcm_decrypt(void);
7int gcm_uninit(void);
8int gcm_check(void);
9
10struct gcm_data {
11 unsigned char *key;
12 unsigned char *iv;
13 unsigned char *pt;
14 unsigned char *add;
15 unsigned char *ct;
16 unsigned char *tag;
17 long key_size;
18 long iv_size;
19 long pt_size;
20 long add_size;
21 long ct_size;
22 long tag_size;
23 int tag_output_size;
24};
25
26extern struct operator gcm_oper;
27
28#endif