Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize CIA hashing #386

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

CasualPokePlayer
Copy link
Contributor

The section of data between the header and ExeFS normally has to be "decrypted" to obtain the right AES state. However, we can just abuse the way CBC works and get the right IV regardless, by just reading the previous encrypted block before the ExeFS.

The section of data between the header and ExeFS normally has to be "decrypted" to obtain the right AES state. However, we can just abuse the way CBC works and get the right IV regardless, by just reading the previous encrypted block before the ExeFS.
Copy link
Member

@Jamiras Jamiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified this generates the same hashes for the handful of .cia files I have.

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