view arib25/src/multi2.h @ 56:521d796003b2

small build fixes - added install rule to arib25 top level makefile - suppress warning in compilation of arib_std_b25.c
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 13 Sep 2009 11:48:40 +0900
parents 41a5481db56f
children
line wrap: on
line source

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