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 34: | Line 34: | ||
}; | }; | ||
} __attribute__((packed)) cf_header; | } __attribute__((packed)) cf_header; | ||
</ | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 93: | Line 93: | ||
uint8_t iv_pad[16]; | uint8_t iv_pad[16]; | ||
} __attribute__((packed)) cf_encryption_root_header; | } __attribute__((packed)) cf_encryption_root_header; | ||
</ | </source> | ||
=== Comments === | === Comments === | ||
Line 116: | Line 116: | ||
uint64_t pad; | uint64_t pad; | ||
} __attribute__((packed)) cf_certification_header; | } __attribute__((packed)) cf_certification_header; | ||
</ | </source> | ||
=== Comments === | === Comments === | ||
Line 151: | Line 151: | ||
uint32_t comp_algorithm; // 1 = plain, 2 = zlib | uint32_t comp_algorithm; // 1 = plain, 2 = zlib | ||
} __attribute__((packed)) cf_segment_certification_header; | } __attribute__((packed)) cf_segment_certification_header; | ||
</ | </source> | ||
==== Comments ==== | ==== Comments ==== | ||
Line 186: | Line 186: | ||
} encryption_params; // present for enc_algorithm type 2 and 3 | } encryption_params; // present for enc_algorithm type 2 and 3 | ||
} __attribute__((packed)) cf_attribute; | } __attribute__((packed)) cf_attribute; | ||
</ | </source> | ||
==== Comments ==== | ==== Comments ==== | ||
Line 220: | Line 220: | ||
}; | }; | ||
} __attribute__((packed)) cf_optional_header; | } __attribute__((packed)) cf_optional_header; | ||
</ | </source> | ||
==== Comments ==== | ==== Comments ==== | ||
Line 249: | Line 249: | ||
} RSA2048; | } RSA2048; | ||
} __attribute__((packed)) cf_signature; | } __attribute__((packed)) cf_signature; | ||
</ | </source> | ||
=== Comments === | === Comments === | ||
Line 363: | Line 363: | ||
000004C0 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ................ <<< Signature (RSA2048) | 000004C0 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ................ <<< Signature (RSA2048) | ||
000004D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ <<< Certification Body end, padding | 000004D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ <<< Certification Body end, padding | ||
</ | </source> | ||
Following the same principles, a plain SPKG Certification Body looks like this: | Following the same principles, a plain SPKG Certification Body looks like this: | ||
Line 409: | Line 409: | ||
00000260 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ................ <<< Signature (RSA2048) | 00000260 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ................ <<< Signature (RSA2048) | ||
00000270 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ................ <<< Signature (RSA2048) | 00000270 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ................ <<< Signature (RSA2048) | ||
</ | </source> | ||
* Step 4: Decrypt CF segments if needed | * Step 4: Decrypt CF segments if needed |