Talk:Keys: Difference between revisions

From Vita Developer wiki
Jump to navigation Jump to search
No edit summary
 
(35 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Database Reconstruction Magic =
= OpenSSL usage =
<pre>
BEBAFECA (or CAFEBABE byteswapped)
</pre>


= PSP/PSP2/PS3 NID Suffixes =
== PFS HMAC Usage (Vitashell Example) ==
 
== PS3 noname exports ==
 
<pre>
bc5eba9e042504905b64274994d9c41f
</pre>
 
* algo is sha1 (name+0xsuffix) where name+suffix is all ascii
 
== PSVITA noname exports ==
 
<pre>
c1b886af5c31846467e7ba5e2cffd64a
</pre>
 
* algo is sha1(name + suffix) where name + suffix is hex
 
= PFS HMAC Usage (Vitashell Example) =


* input : <code> echo -n '706673534b4b657902000000000000008cf037f28ea485a53610a0e2b0c57c4d704bfdae23f27bdb82be52bbcee7220f' | xxd -r -p | openssl dgst -sha256 -mac hmac -macopt hexkey:8c5d3a4b9d9bf4b453bce6cdc34331d8 </code>
* input : <code> echo -n '706673534b4b657902000000000000008cf037f28ea485a53610a0e2b0c57c4d704bfdae23f27bdb82be52bbcee7220f' | xxd -r -p | openssl dgst -sha256 -mac hmac -macopt hexkey:8c5d3a4b9d9bf4b453bce6cdc34331d8 </code>
Line 28: Line 7:
* output : <code> dad6825c22e67e45ed29ea8d16d32b6bc16d513210007df4cb23e723e4494bca </code>
* output : <code> dad6825c22e67e45ed29ea8d16d32b6bc16d513210007df4cb23e723e4494bca </code>


= PFS CBC Usage (Vitashell Example) =
== PFS CBC Usage (Vitashell Example) ==


* input : <code> openssl aes-128-cbc -d -in encrypted_key.bin -out key.bin -nosalt -K 00298CDF4428E72C8785DAE0923C60BD -iv 8CF037F28EA485A53610A0E2B0C57C4D -p -nopad </code>
* input : <code> openssl aes-128-cbc -d -in encrypted_key.bin -out key.bin -nosalt -K 00298CDF4428E72C8785DAE0923C60BD -iv 8CF037F28EA485A53610A0E2B0C57C4D -p -nopad </code>
Line 35: Line 14:


= Portability Keysets =
= Portability Keysets =
To do: verify all these keys (most can be found in SceShell), and add the master keys (from encdec_w_portability_sm).


== Enc Key 0 (SceShell) ==
== Enc Key 0 (SceShell) ==
Line 44: Line 25:
* <code> 454250564C34350A8C3AA565A6DD8F41F61F794D65B870D0D07A58D8420FC9EA </code>
* <code> 454250564C34350A8C3AA565A6DD8F41F61F794D65B870D0D07A58D8420FC9EA </code>
* Starts With EBP Magic!
* Starts With EBP Magic!
== Keyset 3 (SceShell) ==
* <code> A9138DADE0F2C77DB24BF111ED8D16B9 </code>
== Keyset 4 (SceShell) ==
* <code> 65848998426DD3E96636616436313035 </code>
== Keyset 5 (SceShell) ==
* <code> 6DBA79D496009D32D47D8F89B815ECC38A8D1734B0912E3529A11DFC1E72AF32</code>
== PSN X-PassPhrase (SceShell) ==
* <code> 65848998426DD3E9663731616165323733656435653136303165326661383430 </code>
* Magic 65 84 89 98 42 6D D3 E9
== Keyset 7 (SceShell) ==
* <code> 30D3E17C0A295898690459CB5A42FE0AA16FFDB373FF2E55CA1A58D695762604 </code>
== Keyset 8 (SceShell) ==
* <code> 0772879FED34D12910C53B8608C42755392B0E084A9568F5A5B16F4C50939E81 </code>
== Keyset 9 (SceShell) ==
* <code> CD5BD9489D49E31E0D3F5989590BBEF4 </code>
== Keyset 10 (SceShell) ==
* <code> 6F6A3466697168657379752B51346453 </code>
* also read as <code>ASCII: oj4fiqhesyu+Q4dS </code>
== Keyset 11 (SceShell) ==
* <code>716D616B656C7A637A39696A6772654470666A7964297265736C396F6C624E64</code>
* also read as <code>ASCII: qmakelzcz9ijgreDpfjyd)resl9olbNd </code>
== Keyset 12 (SceShell) ==
* <code>616675746579712D426D687A6D676738793648616C75666574676661756D6661</code>
* also read as <code>ASCII: afuteyq-Bmhzmgg8y6Halufetgfaumfa</code>
== Keyset 13 (PostSsMgr) (Internal) ==
* <code>985AB256F18C336A8CDE05F1FF08D73615A5710F62CA4DA9B4671F2CABAE4720</code>
== Keyset 14 (PostSsMgr) (External) ==
* <code>706673534B4B65795F5F456E634B657900298CDF4428E72C8785DAE0923C60BD</code>
* ASCII: <code>pfsSKKey__EncKey</code> followed by the key
== Keyset 15 (PostSsMgr) (External) ==
* <code> 706673534B4B65795F5F5365637265748C5D3A4B9D9BF4B453BCE6CDC34331D8 </code>
* ASCII: <code> pfsSKKey__Secret </code> followed by the key
== Keyset 16 (PostSsMgr) (Internal) ==
* <code> 1A2F5EBC915D58983884751FB8193A8450F2FA50FA11A80298BFC32664BE37FE </code>

Latest revision as of 18:37, 8 June 2020

OpenSSL usage[edit source]

PFS HMAC Usage (Vitashell Example)[edit source]

  • input : echo -n '706673534b4b657902000000000000008cf037f28ea485a53610a0e2b0c57c4d704bfdae23f27bdb82be52bbcee7220f' | xxd -r -p | openssl dgst -sha256 -mac hmac -macopt hexkey:8c5d3a4b9d9bf4b453bce6cdc34331d8
  • output : dad6825c22e67e45ed29ea8d16d32b6bc16d513210007df4cb23e723e4494bca

PFS CBC Usage (Vitashell Example)[edit source]

  • input : openssl aes-128-cbc -d -in encrypted_key.bin -out key.bin -nosalt -K 00298CDF4428E72C8785DAE0923C60BD -iv 8CF037F28EA485A53610A0E2B0C57C4D -p -nopad
  • output : 42B015D142B0F35F8251607A0AE87A0F

Portability Keysets[edit source]

To do: verify all these keys (most can be found in SceShell), and add the master keys (from encdec_w_portability_sm).

Enc Key 0 (SceShell)[edit source]

  • 6AA3C1F8641C9142822BBC7A74CC9241A18CD5B1B9A4B89E472F21EBAA254072

Dec Key 0 (SceShell)[edit source]

  • 454250564C34350A8C3AA565A6DD8F41F61F794D65B870D0D07A58D8420FC9EA
  • Starts With EBP Magic!

Keyset 3 (SceShell)[edit source]

  • A9138DADE0F2C77DB24BF111ED8D16B9

Keyset 4 (SceShell)[edit source]

  • 65848998426DD3E96636616436313035

Keyset 5 (SceShell)[edit source]

  • 6DBA79D496009D32D47D8F89B815ECC38A8D1734B0912E3529A11DFC1E72AF32

PSN X-PassPhrase (SceShell)[edit source]

  • 65848998426DD3E9663731616165323733656435653136303165326661383430
  • Magic 65 84 89 98 42 6D D3 E9

Keyset 7 (SceShell)[edit source]

  • 30D3E17C0A295898690459CB5A42FE0AA16FFDB373FF2E55CA1A58D695762604

Keyset 8 (SceShell)[edit source]

  • 0772879FED34D12910C53B8608C42755392B0E084A9568F5A5B16F4C50939E81

Keyset 9 (SceShell)[edit source]

  • CD5BD9489D49E31E0D3F5989590BBEF4

Keyset 10 (SceShell)[edit source]

  • 6F6A3466697168657379752B51346453
  • also read as ASCII: oj4fiqhesyu+Q4dS

Keyset 11 (SceShell)[edit source]

  • 716D616B656C7A637A39696A6772654470666A7964297265736C396F6C624E64
  • also read as ASCII: qmakelzcz9ijgreDpfjyd)resl9olbNd

Keyset 12 (SceShell)[edit source]

  • 616675746579712D426D687A6D676738793648616C75666574676661756D6661
  • also read as ASCII: afuteyq-Bmhzmgg8y6Halufetgfaumfa

Keyset 13 (PostSsMgr) (Internal)[edit source]

  • 985AB256F18C336A8CDE05F1FF08D73615A5710F62CA4DA9B4671F2CABAE4720

Keyset 14 (PostSsMgr) (External)[edit source]

  • 706673534B4B65795F5F456E634B657900298CDF4428E72C8785DAE0923C60BD
  • ASCII: pfsSKKey__EncKey followed by the key

Keyset 15 (PostSsMgr) (External)[edit source]

  • 706673534B4B65795F5F5365637265748C5D3A4B9D9BF4B453BCE6CDC34331D8
  • ASCII: pfsSKKey__Secret followed by the key

Keyset 16 (PostSsMgr) (Internal)[edit source]

  • 1A2F5EBC915D58983884751FB8193A8450F2FA50FA11A80298BFC32664BE37FE