import hashlib


def digest(binary_data: bytes) -> str:
    """ Return a SHA256 message digest for the given bytes string

    :param binary_data: The binary data to digest
    :return: A length-64 hex digest of the binary data
    """
    m = hashlib.sha256()
    m.update(binary_data)
    return m.hexdigest()