OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcAppleKeysLib.c File Reference
#include <Base.h>
#include <Library/OcAppleKeysLib.h>
#include <Library/OcMiscLib.h>

Go to the source code of this file.

Data Structures

struct  OC_RSA_PUBLIC_KEY_2048
 

Macros

#define OC_RSA_PK_2048_NUM_BYTES   (2 * (2048 / OC_CHAR_BIT))
 

Functions

 STATIC_ASSERT (sizeof(OC_RSA_PUBLIC_KEY_2048)==sizeof(OC_RSA_PUBLIC_KEY_HDR)+OC_RSA_PK_2048_NUM_BYTES, "The 2048-bit RSA PK struct is malformed.")
 

Variables

STATIC CONST OC_RSA_PUBLIC_KEY_2048 mPkDb1
 
STATIC CONST OC_RSA_PUBLIC_KEY_2048 mPkDb2
 
CONST APPLE_PK_ENTRY PkDataBase [NUM_OF_PK]
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gAppleX86SecureBootRootCaCert []
 
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINTN gAppleX86SecureBootRootCaCertSize
 

Detailed Description

Copyright (C) 2019, vit9696. All rights reserved.

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 OcAppleKeysLib.c.

Macro Definition Documentation

◆ OC_RSA_PK_2048_NUM_BYTES

#define OC_RSA_PK_2048_NUM_BYTES   (2 * (2048 / OC_CHAR_BIT))

The data size of a 2048 Bits RSA Public Key. Includes N and R^2 mod N.

Definition at line 23 of file OcAppleKeysLib.c.

Function Documentation

◆ STATIC_ASSERT()

STATIC_ASSERT ( sizeof(OC_RSA_PUBLIC_KEY_2048) = =sizeof(OC_RSA_PUBLIC_KEY_HDR)+OC_RSA_PK_2048_NUM_BYTES,
"The 2048-bit RSA PK struct is malformed."  )

Variable Documentation

◆ gAppleX86SecureBootRootCaCert

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gAppleX86SecureBootRootCaCert[]

Definition at line 220 of file OcAppleKeysLib.c.

◆ gAppleX86SecureBootRootCaCertSize

GLOBAL_REMOVE_IF_UNREFERENCED CONST UINTN gAppleX86SecureBootRootCaCertSize
Initial value:
=
GLOBAL_REMOVE_IF_UNREFERENCED CONST UINT8 gAppleX86SecureBootRootCaCert[]

Definition at line 330 of file OcAppleKeysLib.c.

◆ mPkDb1

STATIC CONST OC_RSA_PUBLIC_KEY_2048 mPkDb1

Definition at line 48 of file OcAppleKeysLib.c.

◆ mPkDb2

STATIC CONST OC_RSA_PUBLIC_KEY_2048 mPkDb2

Definition at line 120 of file OcAppleKeysLib.c.

◆ PkDataBase

CONST APPLE_PK_ENTRY PkDataBase[NUM_OF_PK]
Initial value:
= {
{
{
0xc7, 0xa1, 0xb9, 0x36, 0x28, 0x80, 0xde, 0x69, 0x57, 0x62, 0xb7, 0xb6,
0x5b, 0xec, 0x6b, 0xf1, 0x56, 0xa5, 0x5c, 0xf9, 0x24, 0x7f, 0x22, 0xef,
0x78, 0x62, 0x35, 0x53, 0x7f, 0x95, 0x2b, 0x45
},
},
{
{
0x74, 0x61, 0x89, 0x8e, 0x6e, 0x62, 0x96, 0x2e, 0xdd, 0x64, 0x44, 0x71,
0x45, 0xf0, 0xd9, 0xd0, 0x2b, 0xcc, 0x95, 0x19, 0x49, 0x20, 0x46, 0x67,
0x1e, 0x1f, 0xcd, 0xdd, 0x18, 0xdc, 0x9b, 0x8b
},
}
}
STATIC CONST OC_RSA_PUBLIC_KEY_2048 mPkDb1
STATIC CONST OC_RSA_PUBLIC_KEY_2048 mPkDb2

Definition at line 195 of file OcAppleKeysLib.c.