mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
makerom: allow encrypting ncch with test PKI
This commit is contained in:
+2
-4
@@ -96,10 +96,8 @@ int LoadKeysFromResources(keys_struct *keys)
|
|||||||
SetCurrentCommonKey(keys,0);
|
SetCurrentCommonKey(keys,0);
|
||||||
|
|
||||||
// NCCH
|
// NCCH
|
||||||
keys->aes.normalKey = NULL;
|
SetNormalKey(keys,zeros_aesKey);
|
||||||
keys->aes.systemFixedKey = NULL;
|
SetSystemFixedKey(keys,zeros_aesKey);
|
||||||
//SetNormalKey(keys,zeros_aesKey);
|
|
||||||
//SetSystemFixedKey(keys,(u8*)zeros_aesKey);
|
|
||||||
|
|
||||||
/* RSA Keys */
|
/* RSA Keys */
|
||||||
keys->rsa.isFalseSign = true;
|
keys->rsa.isFalseSign = true;
|
||||||
|
|||||||
+1
-2
@@ -49,8 +49,7 @@ int SignCXI(ncch_hdr *hdr, keys_struct *keys)
|
|||||||
|
|
||||||
int CheckCXISignature(ncch_hdr *hdr, u8 *pubk)
|
int CheckCXISignature(ncch_hdr *hdr, u8 *pubk)
|
||||||
{
|
{
|
||||||
int result = RsaSignVerify(GetNcchHdrData(hdr),GetNcchHdrDataLen(hdr),GetNcchHdrSig(hdr),pubk,NULL,RSA_2048_SHA256,CTR_RSA_VERIFY);
|
return RsaSignVerify(GetNcchHdrData(hdr), GetNcchHdrDataLen(hdr), GetNcchHdrSig(hdr), pubk, NULL, RSA_2048_SHA256, CTR_RSA_VERIFY);
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NCCH Build Functions
|
// NCCH Build Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user