- while (1) {\r
- Status = GetSectionFromAnyFv (\r
- KeyFileGuid,\r
- EFI_SECTION_RAW,\r
- KeyIndex,\r
- &Buffer,\r
- &Size\r
- );\r
-\r
- if (Status == EFI_SUCCESS) {\r
- RsaPubKey = NULL;\r
- if (RsaGetPublicKeyFromX509 (Buffer, Size, &RsaPubKey) == FALSE) {\r
- DEBUG ((DEBUG_ERROR, "%a: Invalid key format: %d\n", __FUNCTION__, KeyIndex));\r
+ while (InputIndex < KeyInfoCount) {\r
+ if (KeyInfo[InputIndex].Data != NULL) {\r
+ Size = KeyInfo[InputIndex].DataSize;\r
+ Buffer = AllocateCopyPool (Size, KeyInfo[InputIndex].Data);\r
+ if (Buffer == NULL) {\r