blob: c52fcc62f66c0964b701bf19207337757e6101b7 [file] [log] [blame]
developer70436792023-05-19 09:31:20 +08001#ifndef AESCCM_H
2#define AESCCM_H
3#include "common.h"
4int ccm_init(void);
5int ccm_uninit(void);
6int ccm_encrypt(void);
7int ccm_decrypt(void);
8int ccm_check(void);
9
10struct ccm_data {
11 unsigned char *key;
12 unsigned char *nonce;
13 unsigned char *adata;
14 unsigned char *payload;
15 unsigned char *ct;
16 unsigned char *tag;
17 long key_size;
18 long nonce_size;
19 long adata_size;
20 long payload_size;
21 long ct_size;
22 int tag_output_size;
23 long tag_size;
24};
25
26extern struct operator ccm_oper;
27
28#endif