to bytes before iterating xor