Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h
- Timestamp:
- Sep 11, 2019 8:46:37 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133262
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h
r77662 r80721 3 3 4 4 Copyright (c) 2010 - 2017, 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 9 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. 5 SPDX-License-Identifier: BSD-2-Clause-Patent 12 6 13 7 **/ … … 34 28 #endif 35 29 30 /** 31 Check input P7Data is a wrapped ContentInfo structure or not. If not construct 32 a new structure to wrap P7Data. 33 34 Caution: This function may receive untrusted input. 35 UEFI Authenticated Variable is external input, so this function will do basic 36 check for PKCS#7 data structure. 37 38 @param[in] P7Data Pointer to the PKCS#7 message to verify. 39 @param[in] P7Length Length of the PKCS#7 message in bytes. 40 @param[out] WrapFlag If TRUE P7Data is a ContentInfo structure, otherwise 41 return FALSE. 42 @param[out] WrapData If return status of this function is TRUE: 43 1) when WrapFlag is TRUE, pointer to P7Data. 44 2) when WrapFlag is FALSE, pointer to a new ContentInfo 45 structure. It's caller's responsibility to free this 46 buffer. 47 @param[out] WrapDataSize Length of ContentInfo structure in bytes. 48 49 @retval TRUE The operation is finished successfully. 50 @retval FALSE The operation is failed due to lack of resources. 51 52 **/ 53 BOOLEAN 54 WrapPkcs7Data ( 55 IN CONST UINT8 *P7Data, 56 IN UINTN P7Length, 57 OUT BOOLEAN *WrapFlag, 58 OUT UINT8 **WrapData, 59 OUT UINTN *WrapDataSize 60 ); 61 36 62 #endif
Note:
See TracChangeset
for help on using the changeset viewer.