34 return ( ( (
magic->cmf & 0x8f ) == 0x08 ) &&
39 struct image *extracted );
An executable image type.
#define PROBE_NORMAL
Normal image probe priority.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define be16_to_cpu(value)
deflate_format
Compression formats.
static int zlib_magic_is_valid(union zlib_magic *magic)
Check that zlib magic header is valid.
uint16_t magic
Magic signature.
uint8_t cmf
Compression method and flags.
uint16_t check
Check value.
DEFLATE decompression algorithm.
int zlib_deflate(enum deflate_format format, struct deflate_chunk *in, struct image *extracted)
Extract compressed data to image.
struct image_type zlib_image_type __image_type(PROBE_NORMAL)