static uint32_t header;
-static int rkimage_verify_header(unsigned char *buf, int size,
- struct image_tool_params *params)
-{
- return 0;
-}
-
-static void rkimage_print_header(const void *buf)
-{
-}
-
static void rkimage_set_header(void *buf, struct stat *sbuf, int ifd,
struct image_tool_params *params)
{
rkcommon_rc4_encode_spl(buf, 4, params->file_size);
}
-static int rkimage_extract_subimage(void *buf, struct image_tool_params *params)
-{
- return 0;
-}
-
static int rkimage_check_image_type(uint8_t type)
{
if (type == IH_TYPE_RKIMAGE)
4,
&header,
rkcommon_check_params,
- rkimage_verify_header,
- rkimage_print_header,
+ NULL,
+ NULL,
rkimage_set_header,
- rkimage_extract_subimage,
+ NULL,
rkimage_check_image_type,
NULL,
NULL