Lines Matching refs:efi
85 self.efi = EfiStruct()
86 if os.path.exists(self.infile) and os.stat(self.infile).st_size > self.efi.var_file_size:
90 self.ents = buf[self.efi.var_file_size:]
95 hdr = struct.unpack_from(self.efi.var_file_fmt, buf, 0)
101 if crc32 != calc_crc32(buf[self.efi.var_file_size:]):
114 size, attrs, time, guid = struct.unpack_from(self.efi.var_entry_fmt, self.ents, offs)
116 offs += self.efi.var_entry_size
140 ent = struct.pack(self.efi.var_entry_fmt,
184 hdr = struct.pack(self.efi.var_file_fmt,
187 len(self.ents) + self.efi.var_file_size,
297 efi = EfiStruct()
300 etime = struct.pack(efi.var_time_fmt,
310 desc = struct.pack(efi.var_win_cert_uefi_guid_fmt,
311 efi.var_win_cert_uefi_guid_size + len(sig),