PARAM.PFD
Jump to navigation
Jump to search
PARAM.PFD
This file is responsible for making sure the save games aren't tampered with. To prevent file modification of this file and other games files, the cryptographic signatures are inside this file. Some games don't sign their files here though (more info on unprotected saves:Game Saves).
Structure
File size is 0x8000 bytes
Offset | Size | Description | Value |
---|---|---|---|
0x00 | 0x04 bytes | Nothing | All zeroes |
0x04 | 0x04 bytes | Magic value | "PFDB" in ASCII |
0x08 | 0x08 bytes | Unknown | 0x3 |
0x10 | 0x50 bytes | Public key | Method unknown |
0x60 | 0x08 bytes | Unknown | 0x39 |
0x68 | 0x08 bytes | Unknown | 0x72 |
0x70 | 0x08 bytes | Number of files | = x |
then:
table of consisting 60 * 8byte-words 0x72 = no entry 0- x = entry id
each entry:
65 bytes null-terminated filename (filename appears to be 0x72 bytes in length? (followed by the certificate?) - bob) 4 bytes unknown (first byte zero, 2 bytes vary, third byte fixed) 0x54 bytes certificate (if param.sfo is file, then size = 0x90 bytes) 0x2c bytes zero padding (only if after param.sfo; otherwise 0x68 bytes zero padding -bob) 4 bytes file size 8 bytes table-entry again (???) weird repeating 20-byte pattern on file-end (some kind of sha-1 hash??) The weird repeating pattern 60 x 12 bytes so an entry for each potential file with the blank entry (I.E. no file) being represented by the repeating byte pattern.