Talk:Spkg hdr.tar

From PS3 Developer wiki
Jump to navigation Jump to search

Masterzorag, on 2014-07-01

On PS3 FW 3.55 all .spkg_hdr.1 files are not involved in updating. I think that on FW 3.56 all of them are used as in overlayfs: so all .spkg_hdr.1 files are read as Certification headers of same pkg files, decrypted by newer spkg keyset to get the same CF keys to get rest of .pkg files data decrypted.

UPL.xml.pkg (4.60) is decrypted using pkg keyset [0x0000 03.55].

UPL.xml.pkg.spkg_hdr.1 is decrypted using spkg keyset for FW > 3.55.

Only Metadata Info and Signature change.

 [*] Encryption Root Header:                                     [*] Encryption Root Header:
 Key 87 EE 46 44 60 DA DA EA 49 74 58 F9 02 1D 6D 11             Key E0 12 4D EC 48 3A 52 0E BE 4C C1 4A A6 E3 20 D8 
 IV  F4 9F 43 D8 D0 6A F0 FC 33 AF 5E 6E CF 2F 30 1E             IV  93 92 A9 38 8D B7 2B 8F 43 0E 0B 97 3D 45 9A 74 

Of course, a change in Certification gives sha1 of 0x250 bytes completely different:

.pkg    d2 00 81 31 33 ab dc 4c 76 3a 86 21 bf d0 12 ff 69 b2 a7 2e
.spkg   da 88 a0 cb 89 b0 07 44 62 9c cc 01 d5 eb d9 f6 04 dc 60 74

and changes Signature:

.pkg    008e17ec1f0cdc62515eb7d3c90fdc548a0993062b 0096d693c42a5214a9a3712ea6be9791ebe20f615e 000000000000
.spkg   0063651d703369fea4aac784d81b4f4d623836f4d4 00bcaf0dbbd251b5235fc28d1a4dea390d38f2bbac 000000000000