]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyRuntime.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Pk / CryptPkcs7VerifyRuntime.c
CommitLineData
cc01b26e
JW
1/** @file\r
2 Runtime specific implementation of PKCS#7 SignedData Verification Wrapper.\r
3\r
4Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
2009f6b4 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
cc01b26e
JW
6\r
7**/\r
8\r
9#include "InternalCryptLib.h"\r
10\r
11/**\r
12 Extracts the attached content from a PKCS#7 signed data if existed. The input signed\r
13 data could be wrapped in a ContentInfo structure.\r
14\r
15 Return FALSE to indicate this interface is not supported.\r
16\r
17 @param[in] P7Data Pointer to the PKCS#7 signed data to process.\r
18 @param[in] P7Length Length of the PKCS#7 signed data in bytes.\r
19 @param[out] Content Pointer to the extracted content from the PKCS#7 signedData.\r
20 It's caller's responsibility to free the buffer with FreePool().\r
21 @param[out] ContentSize The size of the extracted content in bytes.\r
22\r
23 @retval TRUE The P7Data was correctly formatted for processing.\r
24 @retval FALSE The P7Data was not correctly formatted for processing.\r
25\r
26**/\r
27BOOLEAN\r
28EFIAPI\r
29Pkcs7GetAttachedContent (\r
30 IN CONST UINT8 *P7Data,\r
31 IN UINTN P7Length,\r
32 OUT VOID **Content,\r
33 OUT UINTN *ContentSize\r
34 )\r
35{\r
36 ASSERT (FALSE);\r
37 return FALSE;\r
38}\r