Lines Matching refs:file
40 img->entry[0].file.kind = KIND_FILE; in bootimage_init()
41 img->entry[0].file.type = TYPE_BOOT_IMAGE; in bootimage_init()
42 img->entry[0].file.offset = 0; in bootimage_init()
43 img->entry[0].file.length = 4096; in bootimage_init()
46 memcpy(img->entry[0].file.name, BOOT_MAGIC, BOOT_MAGIC_LENGTH); in bootimage_init()
70 img->entry[n].file.kind = KIND_FILE; in bootimage_add_filedata()
71 img->entry[n].file.type = type; in bootimage_add_filedata()
72 img->entry[n].file.offset = img->next_offset; in bootimage_add_filedata()
73 img->entry[n].file.length = len; in bootimage_add_filedata()
74 SHA256_hash(data, len, img->entry[n].file.sha256); in bootimage_add_filedata()
82 return &(img->entry[n].file); in bootimage_add_filedata()
92 SHA256_hash((void *) &(img->entry[1]), 4096 - 64, img->entry[0].file.sha256); in bootimage_done()