mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Updated the crypto engine:
- Updated AES and SHA-1 source code; - Fixed a few code warnings; - Implemented EDAT/SDAT decryption. Started SPURS implementation: - Added an internal SPURSManager class draft; - Added several drafts for cellSpurs functions. Implemented key.edat decryption in sceNpDrmIsAvailable: - NOTE: Currently, the decrypted key.edat is stored under dev_hdd1/titleID and the user must replace this file in dev_hdd0. This behavior will change in the future as it's currently intended for controlled testing only.
This commit is contained in:
parent
e6aa1a9553
commit
196c2ffe5b
20 changed files with 2891 additions and 821 deletions
|
|
@ -682,7 +682,7 @@ SELF_KEY KeyVault::GetSelfLV1Key(u64 version)
|
|||
{
|
||||
SELF_KEY key(0, 0, 0, "", "", "", "", 0);
|
||||
|
||||
for(int i = 0; i < sk_LV1_arr.GetCount(); i++)
|
||||
for(unsigned int i = 0; i < sk_LV1_arr.GetCount(); i++)
|
||||
{
|
||||
if (sk_LV1_arr[i].version == version)
|
||||
{
|
||||
|
|
@ -698,7 +698,7 @@ SELF_KEY KeyVault::GetSelfLV2Key(u64 version)
|
|||
{
|
||||
SELF_KEY key(0, 0, 0, "", "", "", "", 0);
|
||||
|
||||
for(int i = 0; i < sk_LV2_arr.GetCount(); i++)
|
||||
for(unsigned int i = 0; i < sk_LV2_arr.GetCount(); i++)
|
||||
{
|
||||
if (sk_LV2_arr[i].version == version)
|
||||
{
|
||||
|
|
@ -714,7 +714,7 @@ SELF_KEY KeyVault::GetSelfISOKey(u16 revision, u64 version)
|
|||
{
|
||||
SELF_KEY key(0, 0, 0, "", "", "", "", 0);
|
||||
|
||||
for(int i = 0; i < sk_ISO_arr.GetCount(); i++)
|
||||
for(unsigned int i = 0; i < sk_ISO_arr.GetCount(); i++)
|
||||
{
|
||||
if ((sk_ISO_arr[i].version == version) &&
|
||||
(sk_ISO_arr[i].revision == revision))
|
||||
|
|
@ -731,7 +731,7 @@ SELF_KEY KeyVault::GetSelfAPPKey(u16 revision)
|
|||
{
|
||||
SELF_KEY key(0, 0, 0, "", "", "", "", 0);
|
||||
|
||||
for(int i = 0; i < sk_APP_arr.GetCount(); i++)
|
||||
for(unsigned int i = 0; i < sk_APP_arr.GetCount(); i++)
|
||||
{
|
||||
if (sk_APP_arr[i].revision == revision)
|
||||
{
|
||||
|
|
@ -747,7 +747,7 @@ SELF_KEY KeyVault::GetSelfUNK7Key(u64 version)
|
|||
{
|
||||
SELF_KEY key(0, 0, 0, "", "", "", "", 0);
|
||||
|
||||
for(int i = 0; i < sk_UNK7_arr.GetCount(); i++)
|
||||
for(unsigned int i = 0; i < sk_UNK7_arr.GetCount(); i++)
|
||||
{
|
||||
if (sk_UNK7_arr[i].version == version)
|
||||
{
|
||||
|
|
@ -763,7 +763,7 @@ SELF_KEY KeyVault::GetSelfNPDRMKey(u16 revision)
|
|||
{
|
||||
SELF_KEY key(0, 0, 0, "", "", "", "", 0);
|
||||
|
||||
for(int i = 0; i < sk_NPDRM_arr.GetCount(); i++)
|
||||
for(unsigned int i = 0; i < sk_NPDRM_arr.GetCount(); i++)
|
||||
{
|
||||
if (sk_NPDRM_arr[i].revision == revision)
|
||||
{
|
||||
|
|
@ -831,8 +831,8 @@ u8 *KeyVault::GetKlicenseeKey()
|
|||
{
|
||||
return klicensee_key;
|
||||
}
|
||||
|
||||
void KeyVault::RapToRif(unsigned char* rap, unsigned char* rif)
|
||||
|
||||
void rap_to_rif(unsigned char* rap, unsigned char* rif)
|
||||
{
|
||||
int i;
|
||||
int round;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue