Lines Matching refs:header
15 int VbSharedDataInit(VbSharedDataHeader *header, uint64_t size)
17 VBDEBUG(("VbSharedDataInit, %d bytes, header %d bytes\n", (int)size,
21 VBDEBUG(("Not enough data for header.\n"));
29 if (!header)
32 /* Zero the header */
33 Memset(header, 0, sizeof(VbSharedDataHeader));
36 header->magic = VB_SHARED_DATA_MAGIC;
37 header->struct_version = VB_SHARED_DATA_VERSION;
38 header->struct_size = sizeof(VbSharedDataHeader);
39 header->data_size = size;
40 header->data_used = sizeof(VbSharedDataHeader);
41 header->firmware_index = 0xFF;