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 and running md5sum and sha1sum with the file as input.
Merge pull request #1257 from redstar/digestunittest

Fix endian-dependent unit test.