SECURITY: Throw exception on unknown hash algorithm