• Search
  • Today's Posts
  • Mark Forums Read
  • Remove Ads
HomeForumsPSPPS3DSWiiXbox 360PSP XMB

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Log in:

  Console Spot Forums - PSP DS PS3 Xbox 360 Wii XMB > Sony PSP Forums > PSP Help & Tutorials
[Guide] IdStorage Keys

  

Reply
Page 1 of 3 1 23 >
 
LinkBack Thread Tools Display Modes
Old 06-19-2008, 06:28 AM   #1 (permalink)
karothacker
Moderator
 
karothacker's Avatar
 
Join Date: Sep 2007
Posts: 1,444
Default [Guide] IdStorage Keys

FIX IDSTORAGE KEYS BY USING Despertar del Cementerio v7




[Guide] IdStorage Keys

Quote:
Very little is known about the IDStorage generation process, except that it occurs onboard the PSP, leading speculators to believe Sony may use Jigkick Batteries to start the process on the PSP during manufacture.

It is believed IDStorage cannot be restored even by Sony technicians after the manufacture process.
Meaning it can't be restored without a NAND Back-up, and only a Few Keys can be fixed with programs such as KeyCleaner and IdStorage Manager by Chilly Willy

Info below compiled from various sources, including: adrahil, Chilly Willy, FreePlay, harleyg, jas0nuk, l_oliveira, Mathieulh, Saben, SilverSpring, Squirrel, vb_master

The following keys are backed up separately from the IdStorage, non-indexed: 4, 5, 6, F, 30-3F, 40-46, 50, 140

NOTE: Slim v1 = TA-085 baryon 22B200, Slim v1.1 = TA-085 baryon 234000, Slim v2 = TA-088, Fat v4 = TA-086

Quote:
* = key is the same per model, but not necessarily the same in every PSP
* = key is unique to each PSP
* = key is partially unique (e.g. WLAN region are all similar but with a few bytes changed for different regions)


General info on each key
Quote:
* 0x4 - Baryon settings/information - extra data added since Slim v1
* 0x5 - Clockgen/I2C setup commands - invalidating the first four bytes enables 1.50 to boot on TA-082+ by preventing an IPL crash due to unsupported hardware
* 0x6 - Battery, CPU frequency and general power settings - extra data added since Slim v1
* 0x7 - Unknown usage (exists since Fat v4/Slim v1) - changed in Slim v2
* 0x8 - Brightness hardware control (exists since Fat v4/Slim v1) - changed in Slim v1.1 and again in Slim v2 - if this is detected, the data in them is used to control the brightness levels. If not, the board acts as a TA-079 which causes brightness level issues with the new hardware.

* 0x10 - MagicGate
* 0x11 - MagicGate
* 0x12 - MagicGate
* 0x13 - MagicGate
* 0x40 - Contains the 0x5 bytes at 0x88 from key 0x10
All of the above are required for MagicGate to work

* 0x41 - USB (Driver type identifier) - slightly different since Slim v1
* 0x43 - USB (Device ID) - slightly different since Slim v1

* 0x44 - WLAN MAC Address (can be rebuilt using Noobz MAC Address Fixer)
* 0x45 - WLAN Region (can be rebuilt using KeyCleaner)

* 0x47 - Default parental lock level (first byte is 0x09, rest is empty)

* 0x50 - Serial number (not used since TA-082)
* 0x51 - Firmware the PSP shipped with, and unknown unique data (exists since Fat v4/Slim v1)
* 0x52 - Unused by PSP - Mostly the same per PSP except for slight variations - could be manufacturing info (exists since Slim v1)
* 0x54 - Default XMB background colour - first 3 bytes: 02 00 02 in PSP-200X IS, 02 00 00 in PSP-200X PB (exists since Slim v1)

* 0x100 - DNAS, VSH & Internet browser region, ad-hoc region (if missing, official updaters cannot run - error CTA80000025)
* 0x101 - OpenPSID (non-indexed duplicate at [location of original + 0x8000])

* 0x102 - UMD (non-indexed duplicate at [location of original + 0x8000])
* 0x103 - UMD (non-indexed duplicate at [location of original + 0x8000])
* 0x104 - UMD (non-indexed duplicate at [location of original + 0x8000])
* 0x105 - UMD (non-indexed duplicate at [location of original + 0x8000])
* 0x106 - UMD (non-indexed duplicate at [location of original + 0x8000])
102-106 is a continuous key which the UMD drive uses. Any invalid ones (missing, edited, or from another PSP) will prevent the UMD sectors being decrypted, resulting in a Disc Read Error

* 0x120-0x126 - backup of respective 0x0100-106 key

* 0x140 - Unknown unique data


More info on keys 4-8
Keys 4-8 are setup data for various devices. Their structure is as follows:
typedef struct {
u32 signature; // "Clkg", "Bryn", etc
int type; // always 00000001 so far
int datalen; // length of data starting at 0x10
u32 hash; // hash of data from 0x10 to 0x10+datalen
u8 databuf[0x1F0]; // data used for hardware init/control
} SceIdStorageLeaf;


Since official updater 3.30, every updater has a hidden module called sceChkDegeneration which checks the signatures of these keys and produces an error if the signature is incorrect:

Quote:
DRNFFFFFFD8 = key 0x4 missing
DRNFFFFFFD7 = key 0x4 header is not "n y r B" (in hex: 6E 79 72 42)
DRNFFFFFFCE = key 0x5 missing
DRNFFFFFFCD = key 0x5 header is not "g k l C" (in hex: 67 6B 6C 43)
DRNFFFFFFC4 = key 0x6 missing
DRNFFFFFFC3 = key 0x6 header is not "r d D M" (in hex: 72 64 44 4D)

Additional checks in TA-086:
DRNFFFFFFB9 = key 0x7 header is not "D a P A" (in hex: 44 61 50 41)
DRNFFFFFFB0 = key 0x8 missing
DRNFFFFFFAF = key 0x8 header is not "p D C L" (in hex: 70 44 43 4C) - for this error, creating a fake key 8 is not enough as this will result in the brightness not working at all, a real key must be used.


KIRK commands
IdStorage keys are created by one of the KIRK commands, so we need to get as much information as we can about KIRK (aka semaphore hardware decryption)

0x01 - PRX decryption
0x02 - ???
0x03 - ???
0x04 - Scramble, savedata (chnnlsv) [paired with 0x7]
0x05 - Unsigcheck, savedata (chnnlsv) [paired with 0x8]
0x06 - ??? [paired with 0x9]
0x07 - Descramble [paired with 0x4]
0x08 - Sigcheck, savedata (chnnlsv) [paired with 0x5]
0x09 - ??? [paired with 0x6]
0x0A - ???
0x0B - SHA-1
0x0C - ??? (memab)
0x0D - ??? (memab)
0x0E - savedata (chnnlsv), memab, semawm, DbsvrGetData
0x0F - ???
0x10 - ??? (memab)
0x11 - ??? (memab)
0x12 - IdStorage checks




GetPsCode (0x100 region key) return codes
List compiled by harleyg/Slash

Region code is returned from sceChkregGetPsCode, in the format 01 00 XX 00 01

Model Country Region GetPsCode Comments
--------------------------------------------------------------------------
PSP-1000 Japan 2 0x03 Standard Pack
PSP-1000CW Japan 2 0x03 White Giga Pack
PSP-1000K Japan 2 0x03 Value Pack
PSP-1000KCW Japan 2 0x03 White Value Pack
PSP-1000G1 Japan 2 0x03 Giga Pack
PSP-1000G1CW Japan 2 0x03 White Giga Pack
PSP-1001K North America 1 0x04 Value Pack
PSP-1001G1 North America 1 0x04 Giga Pack
PSP-1002K Australia/New Zealand 4 0x09 Value Pack
PSP-1002G1 Australia/New Zealand 4 0x09 Giga Pack
PSP-1003K UK 2 0x05 Value Pack
PSP-1003G1 UK 2 0x05 Giga Pack
PSP-1004K Europe 2 0x05 Value Pack
PSP-1004G1 Europe 2 0x05 Giga Pack
PSP-1005K Korea 5 0x06 Value Pack
PSP-1005G1 Korea 5 0x06 Giga Pack
PSP-1006CW Hong Kong/Singapore 5 0x0A White Giga Pack
PSP-1006K Hong Kong/Singapore 3 0x0A Value Pack
PSP-1006G1 Hong Kong/Singapore 3 0x0A Giga Pack
PSP-1007K Taiwan 3 0x0B Value Pack
PSP-1007G1 Taiwan 3 0x0B Giga Pack
PSP-1008K Russia 5 0x0C Value Pack
PSP-1008G1 Russia 5 0x0C Giga Pack
PSP-1009K China 6 0x0D Value Pack
PSP-1009G1 China 6 0x0D Giga Pack


Source = IdStorage keys and their uses + regeneration [TECHNICAL DISCUSSION] - LAN.ST


EDIT: Checking Keys 0x100-0x102 To See What Is Wrong With Them (Only Programed with what we know so far)
Quote:
Here is a quick test that will verify each of these 6 sections in key 0x100-0x102 (using KIRK cmd 0x12):

http://silverspring.lan.st/certcheck.rar

It's a 3.xx app (src included), should work on all psps (tested on 3.52 fat and 3.90 slim).

If you modify any part of those keys, you'll see the app fail the check for that section. But you can modify any section apart from section0 & section5 (pscode & openPSID) and all features of the psp will still work fine, even though the app will fail the verify. Modify section0 (pscode) and you'll get region errors, modify section5 (openPSID) and you'll get adhoc/dnas errors.

Here are the offsets of each section in the idstorage key:

section0: 0xB8 Bytes from offset 0x038 of key 0x100 (this is the pscode)
section1: 0xB8 Bytes from offset 0x0F0 of key 0x100
section2: 0xB8 Bytes from offset 0x1A8 of key 0x100 (continues onto key 0x101)
section3: 0xB8 Bytes from offset 0x060 of key 0x101
section4: 0xB8 Bytes from offset 0x118 of key 0x101
section5: 0xB8 Bytes from offset 0x1D0 of key 0x101 (continues onto key 0x102) (this is the openPSID)

Only section 0 & 5 are used in the fw so that's why modifying any other section doesnt affect the psp's functionality.

Little is known about the format of these 0xB8 Byte sections and how they are generated, though it's constantly being researched. It doesnt seem to be one single stream of data but composed of seperate parts.
Attached Files
File Type: zip ChillyWilly's IdStorage Tools.zip (1.10 MB, 71 views)
__________________



Last edited by karothacker; 08-20-2008 at 02:08 AM.
karothacker is offline   Reply With Quote
Old 06-19-2008, 06:34 AM   #2 (permalink)
NightCalyster
The Cerebral Assassin
 
NightCalyster's Avatar
 
Join Date: Sep 2007
Location: Florida,USA
Posts: 961
Default

I dont understand is there a way to fix the CTA80000025 iread it but i dont understand i know what the keys mean
__________________

CLICK IT U KNOW U WANT TO


Many have said something is impossible.Many have done the things that were impossible.Can the possible happen with TABS

Release Date: SORRY TBA
Made by:NightCalyster
Can u stand the wait
Drop by my profile & leave a comment

Last edited by NightCalyster; 06-19-2008 at 06:36 AM.
NightCalyster is offline   Reply With Quote
Old 06-19-2008, 07:06 AM   #3 (permalink)
karothacker
Moderator
 
karothacker's Avatar
 
Join Date: Sep 2007
Posts: 1,444
Default

Quote:
Originally Posted by NightCalyster View Post
I dont understand is there a way to fix the CTA80000025 iread it but i dont understand i know what the keys mean
Key 0x100? There is no way to fix it unless you have a IDStorage back up.

If I'm wrong on this then please someone correct me. I'm still learning about IdStorage.
__________________



Last edited by karothacker; 06-19-2008 at 07:11 AM.
karothacker is offline   Reply With Quote
Old 06-19-2008, 07:28 AM   #4 (permalink)
Stryeguy
Captain Planet
 
Stryeguy's Avatar
 
Join Date: Sep 2007
Location: Mount Pleasant, MI
Posts: 659
Default

Another excellent guide by you. Awesome work, man. Keep it up!

+ points

EDIT: Made sticky.
Stryeguy is offline   Reply With Quote
Old 06-19-2008, 07:48 AM   #5 (permalink)
karothacker
Moderator
 
karothacker's Avatar
 
Join Date: Sep 2007
Posts: 1,444
Default

Quote:
Originally Posted by Stryeguy View Post
Another excellent guide by you. Awesome work, man. Keep it up!

+ points

EDIT: Made sticky.
Thank you for Stick, Comment, and Donation!
__________________


karothacker is offline   Reply With Quote
Old 06-23-2008, 04:36 AM   #6 (permalink)
karothacker
Moderator
 
karothacker's Avatar
 
Join Date: Sep 2007
Posts: 1,444
Default

EDIT: Checking Keys 0x100-0x102 To See What Is Wrong With Them (Only Programed with what we know so far)
__________________


karothacker is offline   Reply With Quote
Old 06-23-2008, 04:38 AM   #7 (permalink)
Steven21
The Master Of Disguise
 
Steven21's Avatar
 
Join Date: Feb 2008
Location: Canada
Posts: 1,325
Default

very helpful thread
__________________



Click here to feed me a Star Fruit!
Get your own at Flyffables!
Steven21 is offline   Reply With Quote
Old 06-23-2008, 05:11 AM   #8 (permalink)
karothacker
Moderator
 
karothacker's Avatar
 
Join Date: Sep 2007
Posts: 1,444
Default

Quote:
Originally Posted by Steven21 View Post
very helpful thread
Thank You:up:
__________________


karothacker is offline   Reply With Quote
Old 06-23-2008, 09:02 PM   #9 (permalink)
gerjan
Senior Member

 
Join Date: Oct 2007
Location: Netherlands
Posts: 111
Default

I just restored my slim after a nice brick and used Keycleaner to clean up. I had 5 bad keys and luckily i could fix them ,thanx to your guide I know just what they 're for . thanx KAROTHACKER
gerjan is online now   Reply With Quote
Old 06-23-2008, 09:26 PM   #10 (permalink)
karothacker
Moderator
 
karothacker's Avatar
 
Join Date: Sep 2007
Posts: 1,444
Default

Quote:
Originally Posted by gerjan View Post
I just restored my slim after a nice brick and used Keycleaner to clean up. I had 5 bad keys and luckily i could fix them ,thanx to your guide I know just what they 're for . thanx KAROTHACKER
Glad to here that KeyCleaner Could fix them

Thanks
__________________


karothacker is offline   Reply With Quote
Reply
Page 1 of 3 1 23 >

« Previous Thread | Next Thread »
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode
Hybrid Mode Switch to Hybrid Mode
Threaded Mode Switch to Threaded Mode

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
Trackbacks are On
Pingbacks are On
Refbacks are On



  


hit counters

All times are GMT. The time now is 06:15 AM.

Contact Us - ConsoleSpot - Archive - Top

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks