def rot(_input: bytes, _bytes: int) -> bytes:
    """Support function to rotate a byte stream by a given byte value.

    :param _input: bytes stream
    :param _bytes: bytes to be rotated

    :returns: rotated data
    """
    return bytes(_input[(i + _bytes) % len(_input)] for i in range(len(_input)))