hashes: optimizations

Manually unroll loops and inline state variables into the
appropriate macros.
Update copyright year.