]>
Commit | Line | Data |
---|---|---|
532616bb | 1 | /** @file\r |
2 | Authenticode Portable Executable Signature Verification which does not provide\r | |
3 | real capabilities.\r | |
4 | \r | |
5 | Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r | |
2009f6b4 | 6 | SPDX-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 | |
32 | BOOLEAN\r | |
33 | EFIAPI\r | |
34 | AuthenticodeVerify (\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 |