bool IMG_MEM_ValidateHeader(DEVICE_CONTEXT * ctx, FW_IMG_HDR * fwHdr);
This function validate a header Criteria - Metadata revision, Sequence number (not 0 or 0xFFFFFFFF), rollback counter, image len % 4096 != 0, firmware and header auth method is ECDSA on P-384, encryption methods are None, Firmware image header is 0xE0 bytes, metadata container index is 1
Param | Description |
---|---|
ctx | A device context structure |
fwHdr | Firmware image header pointer |
top | Pointer to an image memory topology |
FW_IMG_HDR Firmware image header pointer
IMG_MEM_TOPOLOGY* IMG_MEM_GetTopologyByAddress (DEVICE_CONTEXT * ctx,
This function returns a topology based on a specific address Prerequisite: ctx initialized with FindValidTopologies
Param | Description |
---|---|
ctx | A device context structure |
address | address to get topology |
top | Pointer to an image memory topology |
IMG_MEM_TOPOLOGY topology pointer or NULL