about summary refs log tree commit diff stats
path: root/gba/source/sha2.c
Commit message (Collapse)AuthorAgeFilesLines
* Replaced SHA-224 with BLAKE2sKelly Rauchenberger2017-09-261-471/+0
| | | | | | | | | | | | | | | | | 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
* Added identifying hash to Pokémon data structureKelly Rauchenberger2017-09-101-0/+471
The purpose of this hash is described in detail in pokemon.h. The hash is computed using an implementation of SHA-224. To allow the GBA sufficient time to compute this hash, a delay of 5 milliseconds was introduced on the GC side before reading a Pokémon.