Go Back  
Reply
 
Thread Tools
Old 10-07-2012   #141
KDSBest
Homebrew Developer
 
Join Date: Mar 2009
Location: Super Mario Land
Posts: 160
Likes: 32
Liked 299 Times in 87 Posts
Mentioned: 72 Post(s)
Tagged: 0 Thread(s)
Originally Posted by JuanNadie View Post
Well, a year passed since I opened this thread so lets celebrate with an update

I have been able to resolve the EDAT v4 version. Basically S**Y add a new key/hash.
When creating the hv99 call, field38 contains the key index. For version 0 to 3 key index zero is used (older key). For version 4, index 1 (the new key) is used.

Keys SHAs:

Code:
EDATKEY0:  84E9FC3574EAA11A9462FFA53D5EA46B4D0003BF
EDATKEY1:  6ECDFEC0A11890C1F2A689062D3EFE562317B2FB
EDATHASH0: 8A721A06ABC7BB9BF398C5EF5D6F1FD997BC0A56
EDATHASH1: F7B2917B1FA260FD51D37716A91036651F6F42F2
In addition to that I reversed more fields of the edat header:

0x40 - 0x4F: Before I said that is was a unknown hash. The value actually is the first 0x10 bytes of the SHA1 of the file before is packed (after using make_edata_npdrm)
0x70 - 0x77 and 0x78 to 0x7F: While normally zero on some betas has a value. This is actually dates (since and upto) of validity. When used in combination of a riff the most restrictive is used
0xD8 - 0xFF: Here are the bad news. This is an ECDSA signature. The pub/curve used is the same that the one used on rifs or act.dats. I haven't found a collision so priv can not be obtained. Fortunately the check is not active (I don't know why... perhaps older version have this not properly implemented)

Finally an update version of the code. I have to break compatibility with @KDSBest release in order to integrate the additional key. Also I added the ecdsa check as a warning (won't stop decryption) as well as minor fixes.


http://pastebin.com/ZpSY1Nf7


On the .ENC files (AKA PS2 remastered games on PSN):

I started reversing those. At the moment I know that the OMAC checks 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 (so patching vsh.self and lv2 will be required to use a fake ISO.BIN.ENC). I can not gave more information of the encryption although I suspect that an encryption similar to BDEMU is used
So sad that you break the compatibility :'(.

Thanks for mention me. Great work and always feel free to break compatibility to my stuff .
KDSBest is offline   Reply With Quote
Likes: (2)
Old 11-05-2012   #142
noinok12
Apprentice
 
noinok12's Avatar
 
Join Date: Aug 2012
Posts: 21
Likes: 4
Liked 2 Times in 1 Post
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Originally Posted by JuanNadie View Post
I have been able to resolve the EDAT v4 version. Basically S**Y add a new key/hash.

Keys SHAs:
Code:
EDATKEY0:  84E9FC3574EAA11A9462FFA53D5EA46B4D0003BF
EDATKEY1:  6ECDFEC0A11890C1F2A689062D3EFE562317B2FB
EDATHASH0: 8A721A06ABC7BB9BF398C5EF5D6F1FD997BC0A56
EDATHASH1: F7B2917B1FA260FD51D37716A91036651F6F42F2
Hello,
Has anyone tried update your tools?
Any algo to find the 2 new keys (edatkey1 and edathash1) for version 4? Are they encrypted in the appldr?
Also, i have problems with the metadata type 3C...

Thanks
noinok12 is offline   Reply With Quote
Old 11-16-2012   #143
element
Apprentice
 
Join Date: Jul 2008
Posts: 11
Likes: 2
Liked 17 Times in 6 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Big thanks to flat_z who identify the algo for rap 2 rif.
But anyway the source code for rap2rif is not public, so I reversed the exe file
and create my own rap2rif


Is it ok to publish ???

Last edited by element; 11-16-2012 at 04:02 AM.
element is offline   Reply With Quote
Likes: (8)
Old 11-16-2012   #144
willemse21
Member
 
willemse21's Avatar
 
Join Date: Nov 2011
Posts: 280
Likes: 766
Liked 215 Times in 79 Posts
Mentioned: 21 Post(s)
Tagged: 0 Thread(s)
Originally Posted by element View Post
Big thanks to flat_z who identify the algo for rap 2 rif.
But anyway the source code for rap2rif is not public, so I reversed the exe file
and create my own rap2rif


Is it ok to publish ???
yes.just send a pm to one of the mods
__________________
willemse21 is offline   Reply With Quote
Old 11-16-2012   #145
xflarex
Member
 
xflarex's Avatar
 
Join Date: Sep 2010
Location: in all the empty space we dont see
Posts: 245
Likes: 190
Liked 63 Times in 46 Posts
Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
Originally Posted by element View Post
Big thanks to flat_z who identify the algo for rap 2 rif.
But anyway the source code for rap2rif is not public, so I reversed the exe file
and create my own rap2rif


Is it ok to publish ???
I'm glad to see you asking, and very glad to see more open source ps3 related projects. Keep up the good work. :D

"Glad" is a weird word..so is "weird".
__________________
Never look a gift Lion in the mouth.
xflarex is offline   Reply With Quote
Old 11-16-2012   #146
element
Apprentice
 
Join Date: Jul 2008
Posts: 11
Likes: 2
Liked 17 Times in 6 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
I have sent a pm to GregoryRasputin .... hopefully he will say that's ok to publish
element is offline   Reply With Quote
Likes: (1)
Old 11-16-2012   #147
flatz
Homebrew Developer
 
Join Date: Dec 2011
Location: Russia
Posts: 102
Likes: 33
Liked 347 Times in 58 Posts
Mentioned: 124 Post(s)
Tagged: 0 Thread(s)
A nice job, element Although I don't know why do you need it, you can just ask me about sources :D

If anyone interested:
rap2rif: http://pastie.org/private/yltlfwubsz8w5pyhmojyfg
rap2rifkey: http://pastie.org/private/pmnmsnqg6zbfnk9xactbw
flatz is offline   Reply With Quote
Likes: (8)
Old 11-16-2012   #148
element
Apprentice
 
Join Date: Jul 2008
Posts: 11
Likes: 2
Liked 17 Times in 6 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
I have asked you via twitter ... and there was no response ....
anyway big thx
element is offline   Reply With Quote
Old 11-16-2012   #149
flatz
Homebrew Developer
 
Join Date: Dec 2011
Location: Russia
Posts: 102
Likes: 33
Liked 347 Times in 58 Posts
Mentioned: 124 Post(s)
Tagged: 0 Thread(s)
Ah, maybe. I rarely check my twitter
flatz is offline   Reply With Quote
Old 11-16-2012   #150
sorg
Apprentice
 
Join Date: Oct 2010
Posts: 23
Likes: 0
Liked 0 Times in 0 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Addition to FLAG_0x20:
Hash in header for metadata is still valid. Just hash all pieces of metadata

Last edited by sorg; 11-16-2012 at 03:52 PM.
sorg is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 02:21 AM.