def _do_register(cls, code, name, hash_name=None, hash_new=None):
        """Add hash function data to the registry without checks."""
        cls._func_from_name[name.replace('-', '_')] = code
        cls._func_from_name[name.replace('_', '-')] = code
        if hash_name:
            cls._func_from_hash[hash_name] = code
        cls._func_hash[code] = cls._hash(hash_name, hash_new)
Add hash function data to the registry without checks.