]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLibNull/Pk/CryptAuthenticodeNull.c
CryptoPkg: Add Null instance of the BaseCryptLib class
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLibNull / Pk / CryptAuthenticodeNull.c
1 /** @file
2 Authenticode Portable Executable Signature Verification which does not provide
3 real capabilities.
4
5 Copyright (c) 2012, 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 PE/COFF Authenticode Signature as described in "Windows
14 Authenticode Portable Executable Signature Format".
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] TrustedCert Pointer to a trusted/root certificate encoded in DER, which
22 is used for certificate chain verification.
23 @param[in] CertSize Size of the trusted certificate in bytes.
24 @param[in] ImageHash Pointer to the original image file hash value. The procedure
25 for calculating the image hash value is described in Authenticode
26 specification.
27 @param[in] HashSize Size of Image hash value in bytes.
28
29 @retval FALSE This interface is not supported.
30
31 **/
32 BOOLEAN
33 EFIAPI
34 AuthenticodeVerify (
35 IN CONST UINT8 *AuthData,
36 IN UINTN DataSize,
37 IN CONST UINT8 *TrustedCert,
38 IN UINTN CertSize,
39 IN CONST UINT8 *ImageHash,
40 IN UINTN HashSize
41 )
42 {
43 ASSERT (FALSE);
44 return FALSE;
45 }