]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyRuntime.c
1b0cda18219cef8fe04ef4783d77f87a42985ae8
2 Runtime specific implementation of PKCS#7 SignedData Verification Wrapper.
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "InternalCryptLib.h"
12 Extracts the attached content from a PKCS#7 signed data if existed. The input signed
13 data could be wrapped in a ContentInfo structure.
15 Return FALSE to indicate this interface is not supported.
17 @param[in] P7Data Pointer to the PKCS#7 signed data to process.
18 @param[in] P7Length Length of the PKCS#7 signed data in bytes.
19 @param[out] Content Pointer to the extracted content from the PKCS#7 signedData.
20 It's caller's responsibility to free the buffer with FreePool().
21 @param[out] ContentSize The size of the extracted content in bytes.
23 @retval TRUE The P7Data was correctly formatted for processing.
24 @retval FALSE The P7Data was not correctly formatted for processing.
29 Pkcs7GetAttachedContent (
30 IN CONST UINT8
*P7Data
,
33 OUT UINTN
*ContentSize