Parse a hex string (40 chars → SHA-1, 64 → SHA-256).
An all-ones (maximum) digest of sizeBytes bytes.
Wrap a copy of bytes. Length must be a multiple of 4 (like digest32).
A 20-byte (SHA-1 sized) digest from raw bytes.
A 32-byte (SHA-256 sized) digest from raw bytes.
An all-zero digest of sizeBytes bytes.