Specifying an unsupported algorithm should trigger an immediate error instead of failing later when hashing starts. (Affects also #6.)