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

IOS/ES: Check the content hash during imports #5039

Merged
merged 1 commit into from Mar 8, 2017

Conversation

leoetlino
Copy link
Member

This adds a hash check for imported contents. IOS does it for security; we do it also for a somewhat different reason, to catch content decryption bugs before incorrectly decrypted contents get written to the NAND, which can cause titles to be corrupted.

Either way, we should have been doing this check in all cases.

@@ -583,6 +584,13 @@ IPCCommandResult ES::AddContentData(const IOCtlVRequest& request)
return GetDefaultReply(IPC_SUCCESS);
}

static bool CheckContentHash(const std::vector<u8>& content, const IOS::ES::Content& info)

This comment was marked as off-topic.

This comment was marked as off-topic.

This adds a hash check for imported contents. IOS does it for security;
we do it for a somewhat different reason, to catch content decryption
bugs before incorrectly decrypted contents get written to the NAND,
which can cause titles to be corrupted.

Either way, we should have been doing this check in all cases.
@Parlane Parlane merged commit cd826ce into dolphin-emu:master Mar 8, 2017
@leoetlino leoetlino deleted the es-import-hash-check branch March 8, 2017 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants