import hashlib


def hash256_bytes(*bytes_hex, encoding="utf-8") -> bytes:
    """Return hash256 digest bytes."""
    m = hashlib.sha256()
    for b in bytes_hex:
        if isinstance(b, str):
            b = b.encode(encoding=encoding)
        m.update(b)
    return m.digest()