hash: doc & style tidy; made HashLength explicitly unsigned.

hash/common: made HashLength explicitly unsigned.
linear: doc & style tidy.