0
|
1 #ifndef MULTI2_H
|
|
2 #define MULTI2_H
|
|
3
|
|
4 #include "portable.h"
|
|
5
|
|
6 typedef struct {
|
|
7
|
|
8 void *private_data;
|
|
9
|
|
10 void (* release)(void *m2);
|
|
11 int (* add_ref)(void *m2);
|
|
12
|
|
13 int (* set_round)(void *m2, int32_t val);
|
|
14
|
|
15 int (* set_system_key)(void *m2, uint8_t *val);
|
|
16 int (* set_init_cbc)(void *m2, uint8_t *val);
|
|
17 int (* set_scramble_key)(void *m2, uint8_t *val);
|
|
18 int (* clear_scramble_key)(void *m2);
|
|
19
|
|
20 int (* encrypt)(void *m2, int32_t type, uint8_t *buf, int32_t size);
|
|
21 int (* decrypt)(void *m2, int32_t type, uint8_t *buf, int32_t size);
|
|
22
|
|
23 } MULTI2;
|
|
24
|
|
25 #ifdef __cplusplus
|
|
26 extern "C" {
|
|
27 #endif
|
|
28
|
|
29 extern MULTI2 *create_multi2();
|
|
30
|
|
31 #ifdef __cplusplus
|
|
32 }
|
|
33 #endif
|
|
34
|
|
35 #endif /* MULTI2_H */
|