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

Go to the source code of this file.

Data Structures

struct  OC_APPLE_CHUNKLIST_CONTEXT_
 

Typedefs

typedef struct OC_APPLE_CHUNKLIST_CONTEXT_ OC_APPLE_CHUNKLIST_CONTEXT
 

Functions

BOOLEAN OcAppleChunklistInitializeContext (OUT OC_APPLE_CHUNKLIST_CONTEXT *Context, IN OUT VOID *Buffer, IN UINT32 BufferSize)
 
BOOLEAN OcAppleChunklistVerifySignature (IN OUT OC_APPLE_CHUNKLIST_CONTEXT *Context, IN CONST OC_RSA_PUBLIC_KEY *PublicKey)
 
BOOLEAN OcAppleChunklistVerifyData (IN OUT OC_APPLE_CHUNKLIST_CONTEXT *Context, IN CONST APPLE_RAM_DISK_EXTENT_TABLE *ExtentTable)
 

Detailed Description

Copyright (C) 2019, Goldfish64. 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 OcAppleChunklistLib.h.

Typedef Documentation

◆ OC_APPLE_CHUNKLIST_CONTEXT

Function Documentation

◆ OcAppleChunklistInitializeContext()

BOOLEAN OcAppleChunklistInitializeContext ( OUT OC_APPLE_CHUNKLIST_CONTEXT * Context,
IN OUT VOID * Buffer,
IN UINT32 BufferSize )

Initializes a chunklist context.

Parameters
[out]ContextThe Context to initialize.
[in]BufferA pointer to a buffer containing the chunklist data.
[in]BufferSizeThe size of the buffer specified in Buffer.
Return values
EFI_SUCCESSThe Context was intialized successfully.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_UNSUPPORTEDThe chunklist is unsupported.

Definition at line 24 of file OcAppleChunklistLib.c.

◆ OcAppleChunklistVerifyData()

BOOLEAN OcAppleChunklistVerifyData ( IN OUT OC_APPLE_CHUNKLIST_CONTEXT * Context,
IN CONST APPLE_RAM_DISK_EXTENT_TABLE * ExtentTable )

Verifies the specified data against a chunklist context.

Parameters
[in]ContextThe Context to verify against.
[in]ExtentTableA pointer to the RAM disk extent table to be verified.
Return values
EFI_SUCCESSThe data was verified successfully.
EFI_INVALID_PARAMETEROne or more parameters are invalid.
EFI_END_OF_FILEThe end of Buffer was reached.
EFI_COMPROMISED_DATAThe data failed verification.

Definition at line 133 of file OcAppleChunklistLib.c.

◆ OcAppleChunklistVerifySignature()

BOOLEAN OcAppleChunklistVerifySignature ( IN OUT OC_APPLE_CHUNKLIST_CONTEXT * Context,
IN CONST OC_RSA_PUBLIC_KEY * PublicKey )

Definition at line 103 of file OcAppleChunklistLib.c.