Editing Talk:EDAT files

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 280: Line 280:
Source: http://www.ps3hax.net/showpost.php?p=300903&postcount=93
Source: http://www.ps3hax.net/showpost.php?p=300903&postcount=93


====Flatz====
====Wikify test====
About PS2 classic and the need of edat as paid content.


*JuanNadie
====='''Header'''=====
{| class="wikitable" style="text-align: center;"
|-
! style="background-color:#123EDA; color:#FFFFFF;" |Offset  || style="background-color:#123EDA; color:#FFFFFF;" |Description || style="background-color:#123EDA; color:#FFFFFF;" |Size || style="background-color:#123EDA; color:#FFFFFF;" |Type || style="background-color:#123EDA; color:#FFFFFF;" |Note
|-
| 0x00  || magic      || 4      || uint32 ||"NPD" (4E 50 44 00)
|-
| 0x04  || version    || 4      || uint32 ||
*01
*02
*03
*04
|-
| 0x08  || [[License_Types|License Types]]      || 4      || uint32 ||
*00 Debug /
*01 Network License
*02 Local License
*03 Free
|-
| 0x10  || [[PARAM.SFO#CONTENT_ID|CONTENT ID]]    || 48 (0x30) || uint8 ||
|-
| 0x40  || Digest        || 16 (0x10) || uint8 ||
|-
| 0x50  || TitlefilenameHash    || 16 (0x10) || uint8 ||
|-
| 0x60  || HeaderHash    || 16 (0x10) || uint8 ||
|-
| 0x70  || 00            || 16 (0x10) || uint8 || filled with 00
|-
| 0x80  || NPD Flag      || 1  || uint8 || (Separated from NPD type for wiki format)
*00 Finalized EDAT
*01 Finalized SDAT
*80 Finalized EDAT
*81 Non Finalized SDAT
|-
| 0x83  || NPD type      || 3 || uint8 ||
*01 Compressed?
*02 Plain text?
*03 Compressed plain text?
*05 Compressed?
*06 Plain text?
*07 Compressed plain text?
*0D Compressed data?
*3C data/misc?
|-
| 0x84  || Block size    || 4 || uint8 || default is 16 kbytes = 0x4000
|-
| 0x88  || Data size    || 8  || uint8 || decoded data size
|-
|}


On the .ENC files (AKA PS2 remastered games on PSN):
====='''Footer'''=====
I started reversing those. At the moment I know that the OMAC checks
{| class="wikitable" style="text-align: center;"
are still there (the klicensee is the default). The ECDSA check is '''ENABLED'''
|-
for PS2 games and on lv2 an ENC is required to be a '''paid content'''
! style="background-color:#123EDA; color:#FFFFFF;" |Description || style="background-color:#123EDA; color:#FFFFFF;" |Size || style="background-color:#123EDA; color:#FFFFFF;" |Note
(so patching vsh.self and lv2 will be required to use a fake ISO.BIN.ENC).
|-
 
| Name    || 5 || EDATA / SDATA
*Flatz
|-
 
| Space  || 1 || 0x20
On the .ENC files (AKA PS2 remastered games on PSN):
|-
| Revision Version? || 1 ||
All PS2 classics runs within the ps2_netemu.self which represents a different kernel
*Version 2: 2.4.0.L
for execution these PS2 games but before it started the VSH module loads your individual
*Version 3: 3.3.0.W
data for PSN/SEN  (such as act.dat and .rif file for your game).
*Version 4: 4.4.0.L
...
*Version 4: 4.4.0.W
You are not required (and you simply can't do it) to generate a valid ECDSA signature
|-
for files because all custom firmwares are patched to skip the ECDSA check.
| End of the file || 3 || zeroed
 
|}
http://www.ps3hax.net/showthread.php?t=53444 (and the source code) for some missing pieces of EDATA structure
 
*‎Ada L0ve Lace
''Might also means than by forgering your ps2 game to match an original rif purchased on cfw and transfer it on ofw will not work.''
Actually I think you can buy one game from the store and use its klicensee to encrypt disc content of another game, then you should join the header with ECDSA signature from the original game and encrypted disc content from the another game. But you should carefully choose a boilerplate game because its size should be bigger than size of the game you want to reencrypt, so you can append padding bytes and generate the corrected LIMG segment. I think it should work on OFW too because the ECDSA signature covers the header only and not the data and header stays unmodified with the method above.
 
====Wikify test/Note/====
'''Flatz''':
 
''Refer to my post at http://www.ps3hax.net/showthread.php?t=53444 (and the source code) for some missing pieces of EDATA structure.'' (Same link as above for PS2 edat but need to be digested complete)
----
Some naming on description and note on main page are for wikify purpose, not yet finished, could be better/or should be confirmed.
 
*EDAT compressed: can be resigned as free with compressed (obviously) or plain data.
 
----
Other stuff
----
'''dev_bdvd/PS3_GAME/USRDIR/sce_system.sdat'''
*Path found in [[game_ext_plugin]].sprx. Note is a bluray disc path, and seems to be a "file reserved name"
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)