mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-06 08:49:04 +00:00
Undo regression and re-add -ckeyid and -ncchseckey
This commit is contained in:
+3
-3
@@ -73,7 +73,7 @@ int LoadKeysFromResources(keys_struct *keys)
|
||||
/* AES Keys */
|
||||
// CIA
|
||||
//SetCommonKey(keys, zeros_aesKey,1);
|
||||
if(keys->aes.currentCommonKey > 0xff)
|
||||
if(keys->aes.currentCommonKey > MAX_CMN_KEY)
|
||||
SetCurrentCommonKey(keys,0);
|
||||
|
||||
// NCCH
|
||||
@@ -101,7 +101,7 @@ int LoadKeysFromResources(keys_struct *keys)
|
||||
for(int i = 0; i < 6; i++)
|
||||
SetCommonKey(keys, ctr_common_etd_key_dpki[i],i);
|
||||
|
||||
if(keys->aes.currentCommonKey > 0xff)
|
||||
if(keys->aes.currentCommonKey > MAX_CMN_KEY)
|
||||
SetCurrentCommonKey(keys,0);
|
||||
|
||||
// NCCH
|
||||
@@ -133,7 +133,7 @@ int LoadKeysFromResources(keys_struct *keys)
|
||||
for (int i = 0; i < 6; i++)
|
||||
SetCommonKey(keys, ctr_common_etd_key_ppki[i], i);
|
||||
|
||||
if(keys->aes.currentCommonKey > 0xff)
|
||||
if(keys->aes.currentCommonKey > MAX_CMN_KEY)
|
||||
SetCurrentCommonKey(keys,0);
|
||||
|
||||
// NCCH
|
||||
|
||||
Reference in New Issue
Block a user