OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
libDERImg4.h File Reference
#include "libDER/libDER.h"
#include "libDERImg4_config.h"

Go to the source code of this file.

Data Structures

struct  DERImg4Environment
 
struct  DERImg4ManifestInfo
 

Enumerations

enum  DERImg4Return { DR_SecurityError = -1 }
 

Functions

DERReturn DERImg4ParseManifest (DERImg4ManifestInfo *ManInfo, const void *ManifestBuffer, size_t ManifestSize, uint32_t ObjType)
 

Detailed Description

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 libDERImg4.h.

Enumeration Type Documentation

◆ DERImg4Return

Enumerator
DR_SecurityError 

Definition at line 24 of file libDERImg4.h.

Function Documentation

◆ DERImg4ParseManifest()

DERReturn DERImg4ParseManifest ( DERImg4ManifestInfo * ManInfo,
const void * ManBuffer,
size_t ManSize,
uint32_t ObjType )

Verify and parse the IMG4 Manifest in ManBuffer and output its information. On success, the Manifest is guaranteed to be digitally signed with the platform-provided DERImg4RootCertificate.

Parameters
[out]ManInfoOutput Manifest information structure.
[in]ManifestBufferBuffer containing the Manifest data.
[in]ManifestSizeSize, in bytes, of ManBuffer.
[in]ObjTypeThe object type to inspect.
Return values
DR_SuccessManBuffer contains a valid, signed IMG4 Manifest and its information has been returned into ManInfo.
otherAn error has occured.

Verify and parse the IMG4 Manifest in ManBuffer and output its information. On success, the Manifest is guaranteed to be digitally signed with the platform-provided DERImg4RootCertificate.

Parameters
[out]ManInfoOutput Manifest information structure.
[in]ManBufferBuffer containing the Manifest data.
[in]ManSizeSize, in bytes, of ManBuffer.
[in]ObjTypeThe object type to inspect.
Return values
DR_SuccessManBuffer contains a valid, signed IMG4 Manifest and its information has been returned into ManInfo.
otherAn error has occured.

Definition at line 1230 of file DER_Img4Manifest.c.