Editing Certified File
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 18: | Line 18: | ||
== Header == | == Header == | ||
< | <source lang="C"> | ||
typedef struct { // Size is 0x20 for v2, 0x30 for v3 | typedef struct { // Size is 0x20 for v2, 0x30 for v3 | ||
uint32_t magic; | uint32_t magic; | ||
Line 86: | Line 86: | ||
=== Struct === | === Struct === | ||
< | <source lang="C"> | ||
typedef struct { | typedef struct { | ||
uint8_t key[16]; | uint8_t key[16]; | ||
Line 107: | Line 107: | ||
=== Struct === | === Struct === | ||
< | <source lang="C"> | ||
typedef struct { | typedef struct { | ||
uint64_t sign_offset; | uint64_t sign_offset; | ||
Line 138: | Line 138: | ||
==== Struct ==== | ==== Struct ==== | ||
< | <source lang="C"> | ||
typedef struct { | typedef struct { | ||
uint64_t segment_offset; | uint64_t segment_offset; | ||
Line 168: | Line 168: | ||
==== Struct ==== | ==== Struct ==== | ||
< | <source lang="C"> | ||
typedef struct { | typedef struct { | ||
union { // size is 0x60 bytes | union { // size is 0x60 bytes | ||
Line 200: | Line 200: | ||
==== Struct ==== | ==== Struct ==== | ||
< | <source lang="C"> | ||
typedef struct { | typedef struct { | ||
uint32_t type; // 1=capability_header, 2=individual_seed_header, 3=attribute_header | uint32_t type; // 1=capability_header, 2=individual_seed_header, 3=attribute_header | ||
Line 238: | Line 238: | ||
=== Struct === | === Struct === | ||
< | <source lang="C"> | ||
typedef struct { | typedef struct { | ||
union { | union { | ||
Line 281: | Line 281: | ||
SPKG Certification follows the same principles but is slightly different (different Magic/Header). | SPKG Certification follows the same principles but is slightly different (different Magic/Header). | ||
< | <source lang = "C"> | ||
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | ||
Line 366: | Line 366: | ||
Following the same principles, a plain SPKG Certification Body looks like this: | Following the same principles, a plain SPKG Certification Body looks like this: | ||
< | <source lang = "C"> | ||
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | ||