]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyRuntime.c
bbbd4f5892111d15b38dfa7c7e7183a269d8e6b7
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Pk / CryptPkcs7VerifyRuntime.c
1 /** @file
2 Runtime specific implementation of PKCS#7 SignedData Verification Wrapper.
3
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include "InternalCryptLib.h"
16
17 /**
18 Extracts the attached content from a PKCS#7 signed data if existed. The input signed
19 data could be wrapped in a ContentInfo structure.
20
21 Return FALSE to indicate this interface is not supported.
22
23 @param[in] P7Data Pointer to the PKCS#7 signed data to process.
24 @param[in] P7Length Length of the PKCS#7 signed data in bytes.
25 @param[out] Content Pointer to the extracted content from the PKCS#7 signedData.
26 It's caller's responsibility to free the buffer with FreePool().
27 @param[out] ContentSize The size of the extracted content in bytes.
28
29 @retval TRUE The P7Data was correctly formatted for processing.
30 @retval FALSE The P7Data was not correctly formatted for processing.
31
32 **/
33 BOOLEAN
34 EFIAPI
35 Pkcs7GetAttachedContent (
36 IN CONST UINT8 *P7Data,
37 IN UINTN P7Length,
38 OUT VOID **Content,
39 OUT UINTN *ContentSize
40 )
41 {
42 ASSERT (FALSE);
43 return FALSE;
44 }
45