1 /** @file
2   RFC3161 Timestamp Countersignature Verification Wrapper Implementation which does
3   not provide real capabilities.
4 
5 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution.  The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10 
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 
14 **/
15 
16 #include "InternalCryptLib.h"
17 
18 /**
19   Verifies the validity of a RFC3161 Timestamp CounterSignature embedded in PE/COFF Authenticode
20   signature.
21 
22   Return FALSE to indicate this interface is not supported.
23 
24   @param[in]  AuthData     Pointer to the Authenticode Signature retrieved from signed
25                            PE/COFF image to be verified.
26   @param[in]  DataSize     Size of the Authenticode Signature in bytes.
27   @param[in]  TsaCert      Pointer to a trusted/root TSA certificate encoded in DER, which
28                            is used for TSA certificate chain verification.
29   @param[in]  CertSize     Size of the trusted certificate in bytes.
30   @param[out] SigningTime  Return the time of timestamp generation time if the timestamp
31                            signature is valid.
32 
33   @retval  FALSE  This interface is not supported.
34 
35 **/
36 BOOLEAN
37 EFIAPI
ImageTimestampVerify(IN CONST UINT8 * AuthData,IN UINTN DataSize,IN CONST UINT8 * TsaCert,IN UINTN CertSize,OUT EFI_TIME * SigningTime)38 ImageTimestampVerify (
39   IN  CONST UINT8  *AuthData,
40   IN  UINTN        DataSize,
41   IN  CONST UINT8  *TsaCert,
42   IN  UINTN        CertSize,
43   OUT EFI_TIME     *SigningTime
44   )
45 {
46   ASSERT (FALSE);
47   return FALSE;
48 }
49