Instead of using the default encryption algorithms in NetSim, I want to use MATLAB to encrypt the packet payload of Netsim. This needs to be done for everypacket generated in NetSim. How can I do this?
The MATLAB encryption function needs to be re written in the form of a function which accepts plain text as input from NetSim and provides cipher text as output.
Then you can write a function which takes care of interaction with MATLAB like:
For the above function to receive and pass the packet payload to MATLAB, a call should be made from the copy_payload() function present in the Application.c file as shown below: