import itertools


def xor(one: bytes, two: bytes) -> bytes:
    """XOR, re-cycling two if len(one) > len(two)."""
    assert len(one) >= len(two)
    return bytes([
        a ^ b for a, b in zip(one, itertools.cycle(two))
    ])