Lines Matching refs:file
40 be->file.type != TYPE_BOOT_IMAGE || in validate_bootimage()
41 be->file.offset != 0 || in validate_bootimage()
42 be->file.length != 4096 || in validate_bootimage()
43 memcmp(be->file.name, BOOT_MAGIC, sizeof(be->file.name))) { in validate_bootimage()
55 if (memcmp(hash, be->file.sha256, sizeof(be->file.sha256)) != 0) { in validate_bootimage()
100 (be[i].file.type >> 0) & 0xff, (be[i].file.type >> 8) & 0xff, in validate_bootimage()
101 (be[i].file.type >> 16) & 0xff, (be[i].file.type >> 24) & 0xff, in validate_bootimage()
102 be[i].file.offset, be[i].file.length); in validate_bootimage()
105 uint32_t end = be[i].file.offset + be[i].file.length; in validate_bootimage()
106 if (end < be[i].file.offset || end > info->image_size) { in validate_bootimage()
115 … SHA256_update(&ctx, (const uint8_t *)bi->ptr + be[i].file.offset, be[i].file.length); in validate_bootimage()
118 if (memcmp(hash, be[i].file.sha256, sizeof(be[i].file.sha256)) != 0) { in validate_bootimage()
192 if (type == be[i].file.type) { in bootimage_get_file_section()
194 *ptr = bi->ptr + be[i].file.offset; in bootimage_get_file_section()
196 *len = be[i].file.length; in bootimage_get_file_section()