OpenCore
1.0.4
OpenCore Bootloader
|
#include <IndustryStandard/AppleChunklist.h>
#include <Library/OcAppleRamDiskLib.h>
#include <Library/OcCryptoLib.h>
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) |
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 struct OC_APPLE_CHUNKLIST_CONTEXT_ OC_APPLE_CHUNKLIST_CONTEXT |
BOOLEAN OcAppleChunklistInitializeContext | ( | OUT OC_APPLE_CHUNKLIST_CONTEXT * | Context, |
IN OUT VOID * | Buffer, | ||
IN UINT32 | BufferSize ) |
Initializes a chunklist context.
[out] | Context | The Context to initialize. |
[in] | Buffer | A pointer to a buffer containing the chunklist data. |
[in] | BufferSize | The size of the buffer specified in Buffer. |
EFI_SUCCESS | The Context was intialized successfully. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
EFI_UNSUPPORTED | The chunklist is unsupported. |
Definition at line 24 of file OcAppleChunklistLib.c.
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.
[in] | Context | The Context to verify against. |
[in] | ExtentTable | A pointer to the RAM disk extent table to be verified. |
EFI_SUCCESS | The data was verified successfully. |
EFI_INVALID_PARAMETER | One or more parameters are invalid. |
EFI_END_OF_FILE | The end of Buffer was reached. |
EFI_COMPROMISED_DATA | The data failed verification. |
Definition at line 133 of file OcAppleChunklistLib.c.
BOOLEAN OcAppleChunklistVerifySignature | ( | IN OUT OC_APPLE_CHUNKLIST_CONTEXT * | Context, |
IN CONST OC_RSA_PUBLIC_KEY * | PublicKey ) |
Definition at line 103 of file OcAppleChunklistLib.c.