CryptTsNull.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /** @file
  2. RFC3161 Timestamp Countersignature Verification Wrapper Implementation which does
  3. not provide real capabilities.
  4. Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #include "InternalCryptLib.h"
  8. /**
  9. Verifies the validity of a RFC3161 Timestamp CounterSignature embedded in PE/COFF Authenticode
  10. signature.
  11. Return FALSE to indicate this interface is not supported.
  12. @param[in] AuthData Pointer to the Authenticode Signature retrieved from signed
  13. PE/COFF image to be verified.
  14. @param[in] DataSize Size of the Authenticode Signature in bytes.
  15. @param[in] TsaCert Pointer to a trusted/root TSA certificate encoded in DER, which
  16. is used for TSA certificate chain verification.
  17. @param[in] CertSize Size of the trusted certificate in bytes.
  18. @param[out] SigningTime Return the time of timestamp generation time if the timestamp
  19. signature is valid.
  20. @retval FALSE This interface is not supported.
  21. **/
  22. BOOLEAN
  23. EFIAPI
  24. ImageTimestampVerify (
  25. IN CONST UINT8 *AuthData,
  26. IN UINTN DataSize,
  27. IN CONST UINT8 *TsaCert,
  28. IN UINTN CertSize,
  29. OUT EFI_TIME *SigningTime
  30. )
  31. {
  32. ASSERT (FALSE);
  33. return FALSE;
  34. }