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

Consolidate ec_wii functions into IOSC #6388

Merged
merged 5 commits into from
Mar 2, 2018
Merged

Conversation

leoetlino
Copy link
Member

This moves ec_wii functions to IOSC to have Wii crypto-related code in one place. Having it in IOSC is more logical because it more closely mirrors the original architecture. It also prevents exposing implementation details -- the dump file format, keys, default values, etc. all shouldn't be visible -- and it lets us get rid of a singleton that shouldn't ever have existed considering the crypto code is only used by ES/network and thus it would have been natural to tie state lifetime to IOS (like a Wii).

By removing the singleton, re-opening Dolphin after importing a NAND dump should now be unnecessary.

Copy link
Member

@BhaaLseN BhaaLseN left a comment

Choose a reason for hiding this comment

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

Nothing that stands out, LGTM i guess (untested).
Someone should try it without a NAND dump tho (just to be sure)

It's always 4 bytes long, so let's just make it a u32.
Preliminary commit for merging ec_wii into IOSC.
Equivalent of IOSC_GenerateCertificate + IOSC_GeneratePublicKeySign.

This is copied from ec_wii/MakeAPSigAndCert.
@leoetlino
Copy link
Member Author

leoetlino commented Feb 22, 2018

Got JMC to test this after fixing some bugs I've found during testing -- everything should be fine with a NAND or without.

@leoetlino leoetlino merged commit a436c61 into dolphin-emu:master Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants