makerom: allow encrypting ncch with test PKI

This commit is contained in:
jakcron
2015-09-28 23:05:56 +08:00
parent 91cdb199f9
commit 0c19bcddb6
2 changed files with 3 additions and 6 deletions
+2 -4
View File
@@ -96,10 +96,8 @@ int LoadKeysFromResources(keys_struct *keys)
SetCurrentCommonKey(keys,0);
// NCCH
keys->aes.normalKey = NULL;
keys->aes.systemFixedKey = NULL;
//SetNormalKey(keys,zeros_aesKey);
//SetSystemFixedKey(keys,(u8*)zeros_aesKey);
SetNormalKey(keys,zeros_aesKey);
SetSystemFixedKey(keys,zeros_aesKey);
/* RSA Keys */
keys->rsa.isFalseSign = true;
+1 -2
View File
@@ -49,8 +49,7 @@ int SignCXI(ncch_hdr *hdr, keys_struct *keys)
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 result;
return RsaSignVerify(GetNcchHdrData(hdr), GetNcchHdrDataLen(hdr), GetNcchHdrSig(hdr), pubk, NULL, RSA_2048_SHA256, CTR_RSA_VERIFY);
}
// NCCH Build Functions