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 */