OpenCore
1.0.4
OpenCore Bootloader
|
Go to the source code of this file.
Data Structures | |
struct | APPLE_IMG4_VERIFICATION_PROTOCOL_ |
Macros | |
#define | APPLE_IMG4_VERIFICATION_PROTOCOL_REVISION 2U |
#define | APPLE_IMG4_VERIFICATION_PROTOCOL_GUID |
Typedefs | |
typedef struct APPLE_IMG4_VERIFICATION_PROTOCOL_ | APPLE_IMG4_VERIFICATION_PROTOCOL |
typedef EFI_STATUS(EFIAPI * | APPLE_IMG4_VERIFY) (IN APPLE_IMG4_VERIFICATION_PROTOCOL *This, IN UINT32 ObjType, IN CONST VOID *ImageBuffer, IN UINTN ImageSize, IN UINT8 SbMode, IN CONST VOID *ManifestBuffer, IN UINTN ManifestSize, OUT UINT8 **HashDigest OPTIONAL, OUT UINTN *DigestSize OPTIONAL) |
Enumerations | |
enum | { AppleImg4SbModeDisabled = 0 , AppleImg4SbModeMedium = 1 , AppleImg4SbModeFull = 2 } |
Variables | |
EFI_GUID | gAppleImg4VerificationProtocolGuid |
The Apple IMG4 verification provides services to verify trusted IMG4 images's integrity.
Copyright (C) 2019, Download-Fritz. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file AppleImg4Verification.h.
#define APPLE_IMG4_VERIFICATION_PROTOCOL_GUID |
Definition at line 21 of file AppleImg4Verification.h.
#define APPLE_IMG4_VERIFICATION_PROTOCOL_REVISION 2U |
Definition at line 19 of file AppleImg4Verification.h.
Definition at line 25 of file AppleImg4Verification.h.
typedef EFI_STATUS(EFIAPI * APPLE_IMG4_VERIFY) (IN APPLE_IMG4_VERIFICATION_PROTOCOL *This, IN UINT32 ObjType, IN CONST VOID *ImageBuffer, IN UINTN ImageSize, IN UINT8 SbMode, IN CONST VOID *ManifestBuffer, IN UINTN ManifestSize, OUT UINT8 **HashDigest OPTIONAL, OUT UINTN *DigestSize OPTIONAL) |
Verify the signature of ImageBuffer against Type of its IMG4 Manifest.
[in] | This | The pointer to the current protocol instance. |
[in] | ObjType | The IMG4 object type to validate against. |
[in] | ImageBuffer | The buffer to validate. |
[in] | ImageSize | The size, in bytes, of ImageBuffer. |
[in] | SbMode | The requested IMG4 Secure Boot mode. |
[in] | ManifestBuffer | The buffer of the IMG4 Manifest. |
[in] | ManifestSize | The size, in bytes, of ManifestBuffer. |
[out] | HashDigest | On output, a pointer to ImageBuffer's digest. |
[out] | DigestSize | On output, the size, in bytes, of *HashDigest. |
EFI_SUCCESS | ImageBuffer is correctly signed. |
EFI_INVALID_PARAMETER | One or more required parameters are NULL. |
EFI_OUT_OF_RESOURCES | Not enough resources are available. |
EFI_SECURITY_VIOLATION | ImageBuffer's signature is invalid. |
Definition at line 53 of file AppleImg4Verification.h.
anonymous enum |
Enumerator | |
---|---|
AppleImg4SbModeDisabled | |
AppleImg4SbModeMedium | |
AppleImg4SbModeFull |
Definition at line 27 of file AppleImg4Verification.h.
|
extern |
Definition at line 41 of file UserGlobalVar.c.