]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticodeNull.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Pk / CryptAuthenticodeNull.c
CommitLineData
532616bb 1/** @file\r
2 Authenticode Portable Executable Signature Verification which does not provide\r
3 real capabilities.\r
4\r
5Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
2009f6b4 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
532616bb 7\r
8**/\r
9\r
10#include "InternalCryptLib.h"\r
11\r
12/**\r
2998af86 13 Verifies the validity of a PE/COFF Authenticode Signature as described in "Windows\r
532616bb 14 Authenticode Portable Executable Signature Format".\r
15\r
16 Return FALSE to indicate this interface is not supported.\r
17\r
18 @param[in] AuthData Pointer to the Authenticode Signature retrieved from signed\r
19 PE/COFF image to be verified.\r
20 @param[in] DataSize Size of the Authenticode Signature in bytes.\r
21 @param[in] TrustedCert Pointer to a trusted/root certificate encoded in DER, which\r
22 is used for certificate chain verification.\r
23 @param[in] CertSize Size of the trusted certificate in bytes.\r
2998af86 24 @param[in] ImageHash Pointer to the original image file hash value. The procedure\r
532616bb 25 for calculating the image hash value is described in Authenticode\r
26 specification.\r
27 @param[in] HashSize Size of Image hash value in bytes.\r
28\r
29 @retval FALSE This interface is not supported.\r
30\r
31**/\r
32BOOLEAN\r
33EFIAPI\r
34AuthenticodeVerify (\r
35 IN CONST UINT8 *AuthData,\r
36 IN UINTN DataSize,\r
37 IN CONST UINT8 *TrustedCert,\r
38 IN UINTN CertSize,\r
39 IN CONST UINT8 *ImageHash,\r
40 IN UINTN HashSize\r
41 )\r
42{\r
43 ASSERT (FALSE);\r
44 return FALSE;\r
45}\r