/* Check whether the timestamp is valid by comparing the signing time and the revocation time. */
BOOLEAN IsValidSignatureByTimestamp(IN EFI_TIME *SigningTime, IN EFI_TIME *RevocationTime)
/* Check whether the timestamp is valid by comparing the signing time and the revocation time. */
BOOLEAN IsValidSignatureByTimestamp(IN EFI_TIME *SigningTime, IN EFI_TIME *RevocationTime)
{
  if (SigningTime->Year != RevocationTime->Year) {
    return (BOOLEAN)(SigningTime->Year < RevocationTime->Year);
  } else if (SigningTime->Month != RevocationTime->Month) {
    return (BOOLEAN)(SigningTime->Month < RevocationTime->Month);
  } else if (SigningTime->Day != RevocationTime->Day) {
    return (BOOLEAN)(SigningTime->Day < RevocationTime->Day);
  } else if (SigningTime->Hour != RevocationTime->Hour) {
    return (BOOLEAN)(SigningTime->Hour < RevocationTime->Hour);
  } else if (SigningTime->Minute != RevocationTime->Minute) {
    return (BOOLEAN)(SigningTime->Minute < RevocationTime->Minute);
  }
  return (BOOLEAN)(SigningTime->Second <= RevocationTime->Second);
}