Document HashAlgorithm

Fixes #527