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

Use CRC32 for IPL checks and update hashes #3152

Merged
merged 1 commit into from Nov 20, 2015

Conversation

ShadowsFriend
Copy link
Contributor

This changes the hashing algorithm from Adler32 to CRC32 for it
is more widely used and therefore makes it easier to verify hashes.
For example the Redump database does provide CRC32 hashes, while it
doesn't have Adler32 ones.
Additionally adds new hashes from the bugtracker and the forums and
removes unknown ones.
Should fix issues https://bugs.dolphin-emu.org/issues/7035 and https://bugs.dolphin-emu.org/issues/8936.

const u32 JAP_v1_1 = 0x46E899DB;
const u32 JAP_unknown = 0x87424396;
const u32 PAL_v1_0 = 0xAF912C43;
const u32 PAL_unknown = 0xA0EA7341;

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@ShadowsFriend
Copy link
Contributor Author

Thanks for the feedback! I removed everything that was commented out and also added a cast from size_t to u32 to make the Windows buildbot happy.

const u32 JAP_v1_1 = 0xD235E3F9; // https://bugs.dolphin-emu.org/issues/8936
const u32 PAL_v1_0 = 0x4F319F43; // Redump
const u32 PAL_v1_2 = 0xAD1B7F16; // Redump

This comment was marked as off-topic.

This comment was marked as off-topic.

This changes the hashing algorithm from Adler32 to CRC32 for it
is more widely used and therefore makes it easier to verify hashes.
For example the Redump database does provide CRC32 hashes, while it
doesn't have Adler32 ones.
Additionally adds new hashes from the bugtracker and the forums and
removes unknown ones.
@BhaaLseN
Copy link
Member

BhaaLseN commented Oct 9, 2015

@dolphin-emu-bot rebuild

@JMC47
Copy link
Contributor

JMC47 commented Nov 20, 2015

Is there any reason for us not to merge this???

@phire
Copy link
Member

phire commented Nov 20, 2015

It looks good to me.

Parlane added a commit that referenced this pull request Nov 20, 2015
Use CRC32 for IPL checks and update hashes
@Parlane Parlane merged commit 0e258d4 into dolphin-emu:master Nov 20, 2015
@ShadowsFriend ShadowsFriend deleted the ipl_checksum branch November 21, 2015 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants