comparison arib25v023/arib25/src/multi2.h @ 3:6801fe7e04ff

updated to ariv25v023
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 17 Feb 2009 01:40:56 +0900
parents arib25v021/arib25/src/multi2.h@67e8eca28a80
children
comparison
equal deleted inserted replaced
2:8ac7c59fefc9 3:6801fe7e04ff
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 */