Skip to content

Conversation

@R-YaTian
Copy link
Contributor

@R-YaTian R-YaTian commented Mar 31, 2025

This PR is a further work of the previous PR. It creates a reversed copy of header.titleid and passes it to the parse_ncch function, preventing header.titleid from being reversed multiple times. This avoids incorrect data when parse_ncch internally reads header.titleid, ensuring the correct retrieval of the Seed Crypto KeyY when processing multiple NCCH contents.
Additionally, this PR fixes a potential issue with incorrect parsing of titleid[3], preventing possible decryption errors for system applications (0004001x).

Edit: The PR which do similar fix for old python3 version will be opened later on. :p
Edit x2: This PR will fix issue #7.

@shijimasoft
Copy link
Owner

Thank you @R-YaTian :)

@shijimasoft shijimasoft merged commit 1763c5e into shijimasoft:main Apr 8, 2025
3 checks passed
@R-YaTian
Copy link
Contributor Author

R-YaTian commented Apr 8, 2025

Thank you @R-YaTian :)

You're welcome! I forgot to linking with issue #7, you can close it now :)

@shijimasoft
Copy link
Owner

No problem :)

@R-YaTian R-YaTian deleted the seed_fix branch April 8, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants