/* Read then Measure and log an EFI boot variable, and extend the measurement result into PCR. according to TCG PC Client PFP spec 0021 Section 2.4.4.2 */
EFI_STATUS ReadAndMeasureBootVariable(IN CHAR16 *VarName, IN EFI_GUID *VendorGuid, OUT UINTN *VarSize, OUT VOID **VarData)
/* Read then Measure and log an EFI boot variable, and extend the measurement result into PCR. according to TCG PC Client PFP spec 0021 Section 2.4.4.2 */
EFI_STATUS ReadAndMeasureBootVariable(IN CHAR16 *VarName, IN EFI_GUID *VendorGuid, OUT UINTN *VarSize, OUT VOID **VarData)
{
  return ReadAndMeasureVariable (
           MapPcrToMrIndex (1),
           EV_EFI_VARIABLE_BOOT,
           VarName,
           VendorGuid,
           VarSize,
           VarData
           );
}