REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the CryptoPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  Runtime specific implementation of PKCS#7 SignedData Verification Wrapper.
 | 
						|
 | 
						|
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
 | 
						|
SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
 | 
						|
**/
 | 
						|
 | 
						|
#include "InternalCryptLib.h"
 | 
						|
 | 
						|
/**
 | 
						|
  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.
 | 
						|
 | 
						|
  @param[in]   P7Data       Pointer to the PKCS#7 signed data to process.
 | 
						|
  @param[in]   P7Length     Length of the PKCS#7 signed data in bytes.
 | 
						|
  @param[out]  Content      Pointer to the extracted content from the PKCS#7 signedData.
 | 
						|
                            It's caller's responsibility to free the buffer with FreePool().
 | 
						|
  @param[out]  ContentSize  The size of the extracted content in bytes.
 | 
						|
 | 
						|
  @retval     TRUE          The P7Data was correctly formatted for processing.
 | 
						|
  @retval     FALSE         The P7Data was not correctly formatted for processing.
 | 
						|
 | 
						|
**/
 | 
						|
BOOLEAN
 | 
						|
EFIAPI
 | 
						|
Pkcs7GetAttachedContent (
 | 
						|
  IN  CONST UINT8  *P7Data,
 | 
						|
  IN  UINTN        P7Length,
 | 
						|
  OUT VOID         **Content,
 | 
						|
  OUT UINTN        *ContentSize
 | 
						|
  )
 | 
						|
{
 | 
						|
  ASSERT (FALSE);
 | 
						|
  return FALSE;
 | 
						|
}
 |