From 928d9151965df067103b23507690e410d8735ae3 Mon Sep 17 00:00:00 2001 From: xprism1 Date: Wed, 27 Jan 2021 02:09:39 +0800 Subject: [PATCH] Respect content.encryptCia --- makerom/tik.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makerom/tik.c b/makerom/tik.c index f28f2e5..df95599 100644 --- a/makerom/tik.c +++ b/makerom/tik.c @@ -65,7 +65,7 @@ void SetupTicketHeader(tik_hdr *hdr, cia_settings *ciaset) SetLimits(hdr,ciaset); // Crypt TitleKey - if(ciaset->content.encryptCia || ciaset->common.titleKey) + if(ciaset->content.encryptCia) CryptTitleKey(ciaset->common.titleKey, hdr->encryptedTitleKey, hdr->titleId, ciaset->keys, ENC); else rndset(hdr->encryptedTitleKey,AES_128_KEY_SIZE);