in PR/12045 by John Valdes, who also provided the problem's
solution and a patch.
XXX This problem could have been caught about a year ago if we
XXX just ran the regression tests on every build!
from OpenBSD to make use of different hash functions possible.
Also factored out some common code pieces, ANSIfied and
corrected SHA1 hash to make the result match up with the
regression examples in above RFC.