modified onehash to internally use byte arrays for storing digests/hashes.  fixed tests for 100% coverage on all platforms.