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