]>
git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyRuntime.c
bbbd4f5892111d15b38dfa7c7e7183a269d8e6b7
2 Runtime specific implementation of PKCS#7 SignedData Verification Wrapper.
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
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.
15 #include "InternalCryptLib.h"
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.
21 Return FALSE to indicate this interface is not supported.
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.
29 @retval TRUE The P7Data was correctly formatted for processing.
30 @retval FALSE The P7Data was not correctly formatted for processing.
35 Pkcs7GetAttachedContent (
36 IN CONST UINT8
*P7Data
,
39 OUT UINTN
*ContentSize