From 1e81318d5430d1154394ee16d16ab9f11d7a7b9f Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 21 Jan 2023 20:07:42 +0800 Subject: [PATCH] Add note for future work for compressed/sparse storage --- src/NcaProcess.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NcaProcess.cpp b/src/NcaProcess.cpp index 1907fa0..a88ff84 100644 --- a/src/NcaProcess.cpp +++ b/src/NcaProcess.cpp @@ -333,6 +333,9 @@ void nstool::NcaProcess::generatePartitionConfiguration() pie::hac::detail::aes_iv_t partition_ctr = info.aes_ctr; tc::crypto::IncrementCounterAes128Ctr(partition_ctr.data(), info.offset >> 4); + // TODO see if AesCtrEx encryption can just be for creating the transparent decryption, with IndirectStorage IStream construction being done after decryption but before hash layer processing + // this might be relevant when processing compressed or sparse storage + NcaProcess nca_base = readBaseNCA(); if (nca_base.mHdr.getProgramId() != mHdr.getProgramId()) {