[PR #22] [CLOSED] Improved CIA content reading, stage 1 #43

Open
opened 2026-01-29 21:16:45 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SabreTools/SabreTools.Serialization/pull/22
Author: @Dimensional
Created: 9/7/2025
Status: Closed

Base: mainHead: main


📝 Commits (2)

  • e108e6a CIA.cs: Changed partition limit to what is specified in the TMD. Added title key decryptor. Added in commented out cia.Offsets for future "partition table" tracking.
  • 9b2e81d Merge branch 'SabreTools:main' into main

📊 Changes

1 file changed (+136 additions, -10 deletions)

View changed files

📝 SabreTools.Serialization/Deserializers/CIA.cs (+136 -10)

📄 Description

CIA files use 2 encryption schemes for their NCCH Content. One is AES CBC with Decrypted Title Key and the Content Index, the index value of the NCCH list, as the IV.
Stage 2 will expand to utilize the same NCCH decryption that 3DS partitions use, but with expansions to use Seed DB keys for content that uses it, FW9.6+.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SabreTools/SabreTools.Serialization/pull/22 **Author:** [@Dimensional](https://github.com/Dimensional) **Created:** 9/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`e108e6a`](https://github.com/SabreTools/SabreTools.Serialization/commit/e108e6ad5ac12d31fa2d2dd8355b0b4deb3b0305) CIA.cs: Changed partition limit to what is specified in the TMD. Added title key decryptor. Added in commented out cia.Offsets for future "partition table" tracking. - [`9b2e81d`](https://github.com/SabreTools/SabreTools.Serialization/commit/9b2e81d4743bcb7b3cdbb736f1aca4aa8b57499f) Merge branch 'SabreTools:main' into main ### 📊 Changes **1 file changed** (+136 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `SabreTools.Serialization/Deserializers/CIA.cs` (+136 -10) </details> ### 📄 Description CIA files use 2 encryption schemes for their NCCH Content. One is AES CBC with Decrypted Title Key and the Content Index, the index value of the NCCH list, as the IV. Stage 2 will expand to utilize the same NCCH decryption that 3DS partitions use, but with expansions to use Seed DB keys for content that uses it, FW9.6+. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 21:16:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/SabreTools.Serialization#43