1.2.5.3.17 IMG_MEM_ValidateHeader Function

C

bool IMG_MEM_ValidateHeader(DEVICE_CONTEXT * ctx, FW_IMG_HDR * fwHdr);

Description

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

Parameters

ParamDescription
ctxA device context structure
fwHdrFirmware image header pointer
topPointer to an image memory topology

Returns

FW_IMG_HDR Firmware image header pointer

C

IMG_MEM_TOPOLOGY* IMG_MEM_GetTopologyByAddress (DEVICE_CONTEXT * ctx, 

Description

This function returns a topology based on a specific address Prerequisite: ctx initialized with FindValidTopologies

Parameters

ParamDescription
ctxA device context structure
addressaddress to get topology
topPointer to an image memory topology

Returns

IMG_MEM_TOPOLOGY topology pointer or NULL