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

Issue deriving sd card key #237

Open
pcartwright81 opened this issue Feb 23, 2022 · 4 comments
Open

Issue deriving sd card key #237

pcartwright81 opened this issue Feb 23, 2022 · 4 comments

Comments

@pcartwright81
Copy link

pcartwright81 commented Feb 23, 2022

Found a strange issue with libhac, that I have tried to debug into, but I can not figure out.
If I use prod.keys from lockpick rcm the sd key is derived incorrectly.
If I pass the sd seed via _keyset.SetSdSeed("hash".ToBytes()) it works.

@Thealexbarney
Copy link
Owner

Does the prod.keys from lockpick contains the correct sd card seed? The same one you use when you pass it manually?

@pcartwright81
Copy link
Author

Yes, and it is the same key that is in ref _keys.DeviceKeys.SdCardEncryptionSeed after the keys are derived. I dumped with Lockpick_RCM 1.9.6 and I am on Firmware > 13.x.x. I also tried copying the lines from prod.keys and creating a console.keys.
Errors I get in the console are:
Failed to match key device_key_4x
Failed to match key eticket_rsa_kek_source
Failed to match key eticket_rsa_kekek_source
Failed to match key rsa_oaep_kek_generation_source
Failed to match key rsa_private_kek_generation_source
Failed to match key save_mac_key
Failed to match key ssl_rsa_kek_source_x

For this dump the prod keys have all of the console specific information.

@Thealexbarney
Copy link
Owner

Did you ever figure out what was causing this issue?

@pcartwright81
Copy link
Author

I started using another way to get the NSP off of the SD card, I don't think I have tried using this method again.

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