AMI-Aptio-BIOS-Reversed / FwKeyHobPei /
@Ajax Dong Ajax Dong authored 7 days ago
..
FwKeyHobPei.c Init 7 days ago
FwKeyHobPei.h Init 7 days ago
FwKeyHobPei.md Init 7 days ago
README.md Init 7 days ago
README.md

FwKeyHobPei

Index Module Size Phase
0356 FwKeyHobPei 3360 bytes (0xD20) PEI

Overview

FwKeyHobPei locates firmware key FFS files by GUID, extracts their raw data sections, and builds GUID-extension HOBs to pass the key material to DXE-phase drivers. The keys are identified by a table of GUIDs stored in the .data section. This PEIM runs during early PEI to ensure cryptographic key material is available before DXE drivers that require it execute.

Key Functions

  • Memset -- Zero-memory utility wrapping standard memset.
  • Memcpy -- Memory copy with overlap-safe backward copy handling.
  • SetMem32 -- 32-bit aligned memory set operation.
  • PeiServicesTableLocator_FwKeyHobPei -- Locates the PEI Services Table pointer.
  • FwKeyHobPeiEntry -- Main entry that enumerates key GUIDs, finds corresponding FFS files, extracts raw data, and builds HOBs.

Dependencies

  • PEI Services (FFS file lookup, HOB creation)
  • PEI Debug PPI
  • Firmware Volume (FV) file system

Platform

  • Architecture: IA32 (x86, PE32)
  • Module GUID: 61C0F511-A691-4F54-974F-B9A42172CE53
  • Source: Lenovo HR650X BIOS, Purley platform