developer | 7043679 | 2023-05-19 09:31:20 +0800 | [diff] [blame] | 1 | #ifndef AESGCM_H |
2 | #define AESGCM_H | ||||
3 | #include "common.h" | ||||
4 | int gcm_init(void); | ||||
5 | int gcm_encrypt(void); | ||||
6 | int gcm_decrypt(void); | ||||
7 | int gcm_uninit(void); | ||||
8 | int gcm_check(void); | ||||
9 | |||||
10 | struct 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 | |||||
26 | extern struct operator gcm_oper; | ||||
27 | |||||
28 | #endif |