mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
Respect content.encryptCia
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ void SetupTicketHeader(tik_hdr *hdr, cia_settings *ciaset)
|
|||||||
SetLimits(hdr,ciaset);
|
SetLimits(hdr,ciaset);
|
||||||
|
|
||||||
// Crypt TitleKey
|
// Crypt TitleKey
|
||||||
if(ciaset->content.encryptCia || ciaset->common.titleKey)
|
if(ciaset->content.encryptCia)
|
||||||
CryptTitleKey(ciaset->common.titleKey, hdr->encryptedTitleKey, hdr->titleId, ciaset->keys, ENC);
|
CryptTitleKey(ciaset->common.titleKey, hdr->encryptedTitleKey, hdr->titleId, ciaset->keys, ENC);
|
||||||
else
|
else
|
||||||
rndset(hdr->encryptedTitleKey,AES_128_KEY_SIZE);
|
rndset(hdr->encryptedTitleKey,AES_128_KEY_SIZE);
|
||||||
|
|||||||
Reference in New Issue
Block a user