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

Add support for V1 encryption #2

Open
innocentvoice opened this issue Sep 14, 2022 · 3 comments
Open

Add support for V1 encryption #2

innocentvoice opened this issue Sep 14, 2022 · 3 comments

Comments

@innocentvoice
Copy link

innocentvoice commented Sep 14, 2022

import * as aesJs from "aes-js";

src/upg/kas.ts:5:35 - error TS2366: Function lacks ending return statement and return type does not include 'undefined'. fixed!

Add support for V1 encryption as title, this is my KAS for nw-s15: 80cbdd9baa4b3cf5c591123cea2c2291

@innocentvoice innocentvoice changed the title kas.ts error Add support for V1 encryption Sep 14, 2022
@roobscoob
Copy link
Owner

I don't own a device to implement V1 encryption. A PR is welcome if you do and want to implement it. Its not incredibly hard, just requires testing. Check the documentation markdown for some helpful references

@innocentvoice
Copy link
Author

I don't own a device to implement V1 encryption. A PR is welcome if you do and want to implement it. Its not incredibly hard, just requires testing. Check the documentation markdown for some helpful references

i see
I wonder about firmware patching, is it important to generate md5 before repacking the upg and compress

@roobscoob
Copy link
Owner

yes. in the toBinary routine for the Upg class, you can see it re-computes the hash.

you shouldn't need to re-compute the hash, only parts that deal with encryption.

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