Use zero-copy methods for hashing.

Also, inline the key setup since it's not re-used.
Don't hard-core N=256.