More encodable digests

Extend EncodableDigest implementation to LongDigest based SHA-2 digests.
Refactored testing of EncodableDigest into shared code in DigestTest.