Simplify the internals a bit.

* Drop blockFunc/hashFunc types. No need.
* Factor out the dataLenSize.