i have got a project to work on wireguard vpn and modify it's code to add some XOR in it and the scenario is as below: wireguard turns on by user, user uses the applications and the wireguard grabs all their data to send to the destination, i want the before wireguard get destination details and all headers from applications data and then before it does any process on data including encrypting or whatever, i do the XOR on the data and then wireguard takes it as the normal data and does it's processes on it and then sends data to the destination and in the destination, when data is received, after wireguard did all decrypting things and right before it delivers data to the destination application, i do the reverse XOR to get the real data and then that data goes to destination the thing is that i don't know which code or what location should i modify, i've tried to work on wireguard server version but i couldn't make it done, i also wrote to the developers and didn't get any answer, so, any ideas or suggestions for me?
i tried to work on server version of wireguard but i couldn't make it done, i want to modify the client and server