]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Pk/CryptTsNull.c
CryptoPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Pk / CryptTsNull.c
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 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include "InternalCryptLib.h"
11
12 /**
13 Verifies the validity of a RFC3161 Timestamp CounterSignature embedded in PE/COFF Authenticode
14 signature.
15
16 Return FALSE to indicate this interface is not supported.
17
18 @param[in] AuthData Pointer to the Authenticode Signature retrieved from signed
19 PE/COFF image to be verified.
20 @param[in] DataSize Size of the Authenticode Signature in bytes.
21 @param[in] TsaCert Pointer to a trusted/root TSA certificate encoded in DER, which
22 is used for TSA certificate chain verification.
23 @param[in] CertSize Size of the trusted certificate in bytes.
24 @param[out] SigningTime Return the time of timestamp generation time if the timestamp
25 signature is valid.
26
27 @retval FALSE This interface is not supported.
28
29 **/
30 BOOLEAN
31 EFIAPI
32 ImageTimestampVerify (
33 IN CONST UINT8 *AuthData,
34 IN UINTN DataSize,
35 IN CONST UINT8 *TsaCert,
36 IN UINTN CertSize,
37 OUT EFI_TIME *SigningTime
38 )
39 {
40 ASSERT (FALSE);
41 return FALSE;
42 }