]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyRuntime.c
CryptoPkg: Apply uncrustify changes
[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 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include "InternalCryptLib.h"
10
11 /**
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.
14
15 Return FALSE to indicate this interface is not supported.
16
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.
22
23 @retval TRUE The P7Data was correctly formatted for processing.
24 @retval FALSE The P7Data was not correctly formatted for processing.
25
26 **/
27 BOOLEAN
28 EFIAPI
29 Pkcs7GetAttachedContent (
30 IN CONST UINT8 *P7Data,
31 IN UINTN P7Length,
32 OUT VOID **Content,
33 OUT UINTN *ContentSize
34 )
35 {
36 ASSERT (FALSE);
37 return FALSE;
38 }