OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
libDERImg4_config.h
Go to the documentation of this file.
1
14#ifndef LIB_DER_IMG4_CONFIG_H
15#define LIB_DER_IMG4_CONFIG_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#define DER_IMG4_MAX_DIGEST_SIZE 64
22
23extern const UINT8 *DERImg4RootCertificate;
24extern const UINTN *DERImg4RootCertificateSize;
25
26bool
28 DERByte *Modulus,
29 DERSize ModulusSize,
30 uint32_t Exponent,
31 const uint8_t *Signature,
32 size_t SignatureSize,
33 uint8_t *Data,
34 size_t DataSize,
35 const DERItem *AlgoOid
36 );
37
38/* ---------------------- Do not edit below this line ---------------------- */
39
40#ifndef DER_IMG4_MAN_CERT_CHAIN_MAX
41#define DER_IMG4_MAN_CERT_CHAIN_MAX 5
42#endif
43
44#ifndef DER_IMG4_MAX_DIGEST_SIZE
45#define DER_IMG4_MAX_DIGEST_SIZE 48
46#endif
47
48#ifndef DER_IMG4_MAX_CERT_SIZE
49#define DER_IMG4_MAX_CERT_SIZE 0x1FFFFU
50#endif
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif // LIB_DER_IMG4_CONFIG_H
UINT8 Signature[8]
Definition BiosId.h:67
size_t DERSize
UINT8 uint8_t
uint8_t DERByte
UINT32 uint32_t
const UINTN * DERImg4RootCertificateSize
const UINT8 * DERImg4RootCertificate
bool DERImg4VerifySignature(DERByte *Modulus, DERSize ModulusSize, uint32_t Exponent, const uint8_t *Signature, size_t SignatureSize, uint8_t *Data, size_t DataSize, const DERItem *AlgoOid)