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

[Feature] Expose common crypto algorithm to decode parts of patterns #2071

Open
claunia opened this issue Jan 16, 2025 · 1 comment
Open

Comments

@claunia
Copy link

claunia commented Jan 16, 2025

Sorry if this is not the proper repo.

I'm right now writing a pattern that has a struct, only a part of the file, encrypted with AES-128, and thinking about the lzma and the hashes thought it would be a good idea.

IV, Key, and other parameters could be taken from other structures, known files, files requested to the user, or directly asked to the user (I think this is what the in variable does? still getting the gist of the language).

As an example you have a pattern for XCI, that could see if prod.keys can be used, if not ask the user for the key, derive everything, decode the PFS0/NCA/so-on and on.

@WerWolv
Copy link
Owner

WerWolv commented Jan 16, 2025

I do like the idea though in general. It would again be an ImHex extension and not directly part of the language but I believe it would fit in with the others yeah. I'd be happy to merge a PR implementing it (would be a great first contribution), otherwise I'll probably get around to doing it eventually 👍

@WerWolv WerWolv transferred this issue from WerWolv/ImHex-Patterns Jan 16, 2025
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

No branches or pull requests

2 participants