From 566d5fe1e012c0001396810bc56395597eb79c2c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 26 Sep 2017 16:52:33 -0400 Subject: Replaced SHA-224 with BLAKE2s Also changed the hash determiner format such that each IV, as well as the Shedinja flag, has its own byte. This increases the size of the determiner to 16 bytes, 33 bits of which are always unset. While this is somewhat wasteful, it is useful for debugging purposes because it is hard to predict the behavior of bitfields. For testing purposes, the amount of time that the Wii waits for the GBA to compute hashes has been increased. Given that BLAKE2s is a generally faster algorithm than SHA-224, it will likely be safe to decrease this delay in a future commit. Because the hash algorithm has changed, all old hashes are now invalid. refs #2 --- source/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/main.c') diff --git a/source/main.c b/source/main.c index 4ce2315..03379d5 100644 --- a/source/main.c +++ b/source/main.c @@ -296,7 +296,7 @@ void* extractor(void* userdata) for (u32 i = 0; i < partyCount; i++) { - usleep(5000); + usleep(6000); u32 rawdata[sizeof(struct PokemonIntermediate) / 4]; getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4); @@ -336,13 +336,13 @@ void* extractor(void* userdata) for (int j=0; j<30; j++) { - usleep(5000); + usleep(6000); int isPoke = getMsg(); if (isPoke == 1) { - usleep(5000); + usleep(6000); u32 rawdata[sizeof(struct PokemonIntermediate) / 4]; getMsgArr(rawdata, sizeof(struct PokemonIntermediate) / 4); -- cgit 1.4.1