OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AppleImg4Verification.h File Reference

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
 

Detailed Description

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.

Macro Definition Documentation

◆ APPLE_IMG4_VERIFICATION_PROTOCOL_GUID

#define APPLE_IMG4_VERIFICATION_PROTOCOL_GUID
Value:
{ 0x314735F0, 0x26FE, 0x11E8, \
{ 0xA4, 0x70, 0xB8, 0xE8, 0x56, 0x2C, 0xBA, 0xFA } }

Definition at line 21 of file AppleImg4Verification.h.

◆ APPLE_IMG4_VERIFICATION_PROTOCOL_REVISION

#define APPLE_IMG4_VERIFICATION_PROTOCOL_REVISION   2U

Definition at line 19 of file AppleImg4Verification.h.

Typedef Documentation

◆ APPLE_IMG4_VERIFICATION_PROTOCOL

◆ APPLE_IMG4_VERIFY

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.

Parameters
[in]ThisThe pointer to the current protocol instance.
[in]ObjTypeThe IMG4 object type to validate against.
[in]ImageBufferThe buffer to validate.
[in]ImageSizeThe size, in bytes, of ImageBuffer.
[in]SbModeThe requested IMG4 Secure Boot mode.
[in]ManifestBufferThe buffer of the IMG4 Manifest.
[in]ManifestSizeThe size, in bytes, of ManifestBuffer.
[out]HashDigestOn output, a pointer to ImageBuffer's digest.
[out]DigestSizeOn output, the size, in bytes, of *HashDigest.
Return values
EFI_SUCCESSImageBuffer is correctly signed.
EFI_INVALID_PARAMETEROne or more required parameters are NULL.
EFI_OUT_OF_RESOURCESNot enough resources are available.
EFI_SECURITY_VIOLATIONImageBuffer's signature is invalid.

Definition at line 53 of file AppleImg4Verification.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AppleImg4SbModeDisabled 
AppleImg4SbModeMedium 
AppleImg4SbModeFull 

Definition at line 27 of file AppleImg4Verification.h.

Variable Documentation

◆ gAppleImg4VerificationProtocolGuid

EFI_GUID gAppleImg4VerificationProtocolGuid
extern

Definition at line 41 of file UserGlobalVar.c.