OK; I changed all instances of the hash function to byteswap32.