Fix endian-dependent unit test.

The input to the digest tests is not endian-neutral. This is now considered.
The big endian values were derived by writing the data into a file (on Linux/PPC64) and running md5sum and sha1sum with the file as input.