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
Edat header
 
{| class="wikitable" style="text-align: center;"
  On the .ENC files (AKA PS2 remastered games on PSN):
|-
I started reversing those. At the moment I know that the OMAC checks
! 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
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'''
| 0x00  || magic      || 4      || uint32 ||"NPD" (4E 50 44 00)
(so patching vsh.self and lv2 will be required to use a fake ISO.BIN.ENC).
|-
 
| 0x04  || version    || 4      || uint32 ||
*Flatz
*01
 
*02
On the .ENC files (AKA PS2 remastered games on PSN):
*03
*04
All PS2 classics runs within the ps2_netemu.self which represents a different kernel
|-
for execution these PS2 games but before it started the VSH module loads your individual
| 0x08  || License      || 4      || uint32 ||
data for PSN/SEN  (such as act.dat and .rif file for your game).
*00 Debug /
...
*01 Network License
You are not required (and you simply can't do it) to generate a valid ECDSA signature
*02 Local License
for files because all custom firmwares are patched to skip the ECDSA check.
*03 Free
 
|-
http://www.ps3hax.net/showthread.php?t=53444 (and the source code) for some missing pieces of EDATA structure
| 0x10  || Content ID    || 48 (0x30) || uint8 || [[PARAM.SFO#CONTENT_ID|CONTENT ID]]
 
|-
*‎Ada L0ve Lace
| 0x40  || Digest        || 16 (0x10) || uint8 ||
''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.
| 0x50  || TitlefilenameHash    || 16 (0x10) || uint8 ||
 
|-
====Wikify test/Note/====
| 0x60  || HeaderHash    || 16 (0x10) || uint8 ||
'''Flatz''':
|-
 
| 0x70  || 00            || 16 (0x10) || uint8 || filled with 00
''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)
|-
----
| 0x80  || NPD Flag      || 1  || uint8 ||
Some naming on description and note on main page are for wikify purpose, not yet finished, could be better/or should be confirmed.
*00 00 00 00 Finalized EDAT
 
*01 00 00 00 Finalized SDAT
*EDAT compressed: can be resigned as free with compressed (obviously) or plain data.
*80 00 00 00 Non Finalized EDAT
 
*81 00 00 00 Non Finalized SDAT
----
|-
Other stuff
| 0x83  || NPD type      || 3 || uint8 ||
----
*01 Compressed?
'''dev_bdvd/PS3_GAME/USRDIR/sce_system.sdat'''
*02 Plain text?
*Path found in [[game_ext_plugin]].sprx. Note is a bluray disc path, and seems to be a "file reserved name"
*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
|-
|}
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)