Returns the HOTP digest an algorithm name names.
SHA1 (the default), SHA256 or SHA512
SHA1
SHA256
SHA512
{ name, hash }
Error for any other name
Returns the HOTP digest an algorithm name names.