diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/arib25v023/arib25/src/multi2.h	Tue Feb 17 01:40:56 2009 +0900
@@ -0,0 +1,35 @@
+#ifndef MULTI2_H
+#define MULTI2_H
+
+#include "portable.h"
+
+typedef struct {
+
+	void *private_data;
+
+	void (* release)(void *m2);
+	int (* add_ref)(void *m2);
+
+	int (* set_round)(void *m2, int32_t val);
+
+	int (* set_system_key)(void *m2, uint8_t *val);
+	int (* set_init_cbc)(void *m2, uint8_t *val);
+	int (* set_scramble_key)(void *m2, uint8_t *val);
+	int (* clear_scramble_key)(void *m2);
+
+	int (* encrypt)(void *m2, int32_t type, uint8_t *buf, int32_t size);
+	int (* decrypt)(void *m2, int32_t type, uint8_t *buf, int32_t size);
+
+} MULTI2;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern MULTI2 *create_multi2();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MULTI2_H */