prevented cia from "decrypting" cleartext ncch images
This commit is contained in:
applestash
2014-08-30 12:56:11 +10:00
parent 96960526e8
commit a624b6db8b
+1 -1
View File
@@ -262,7 +262,7 @@ int GetSettingsFromNcch0(cia_settings *ciaset, u32 ncch0_offset)
/* Getting ncch key */
u8 *ncchkey = NULL;
if(!ciaset->content.keyNotFound || IsNcchEncrypted(hdr)){
if(!ciaset->content.keyNotFound && IsNcchEncrypted(hdr)){
SetNcchKeys(ciaset->keys,hdr);
ncchkey = ciaset->keys->aes.ncchKey0;
if(ciaset->verbose){