TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptPkcs7VerifyRuntime.c File Reference
#include "InternalCryptLib.h"

Go to the source code of this file.

Functions

BOOLEAN EFIAPI Pkcs7GetAttachedContent (IN CONST UINT8 *P7Data, IN UINTN P7Length, OUT VOID **Content, OUT UINTN *ContentSize)
 

Detailed Description

Runtime specific implementation of PKCS#7 SignedData Verification Wrapper.

Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CryptPkcs7VerifyRuntime.c.

Function Documentation

◆ Pkcs7GetAttachedContent()

BOOLEAN EFIAPI Pkcs7GetAttachedContent ( IN CONST UINT8 *  P7Data,
IN UINTN  P7Length,
OUT VOID **  Content,
OUT UINTN ContentSize 
)

Extracts the attached content from a PKCS#7 signed data if existed. The input signed data could be wrapped in a ContentInfo structure.

Return FALSE to indicate this interface is not supported.

Parameters
[in]P7DataPointer to the PKCS#7 signed data to process.
[in]P7LengthLength of the PKCS#7 signed data in bytes.
[out]ContentPointer to the extracted content from the PKCS#7 signedData. It's caller's responsibility to free the buffer with FreePool().
[out]ContentSizeThe size of the extracted content in bytes.
Return values
TRUEThe P7Data was correctly formatted for processing.
FALSEThe P7Data was not correctly formatted for processing.

Definition at line 29 of file CryptPkcs7VerifyRuntime.c.