ganavel9783
Member level 1
Hi every1,
I recently manage to implement the AES encryption algorithm into my PIC16f877. However when i send a text file larger than 16 bytes to my PIC using UART, the 2nd block data onwards is getting truncated. I very much think that i need to set a delay in my pc application so it sends every block of 16 bytes of a text file using a delay rountine.
This way the 2nd block of 16 bytes is send after the 1st block of 16 byte is encrypted and send back to the PC. The same goes when i want to send the 3rd block of 16 bytes where i have to wait for the 2nd encrypted block of 16 bytes to come back to PC. This will go on untill all the the 16 byte blocks of a text file is fully encrypted.
Any help to set up a delay rountine in Visual C will be really appreciated.
regards,
ganavel9783
I recently manage to implement the AES encryption algorithm into my PIC16f877. However when i send a text file larger than 16 bytes to my PIC using UART, the 2nd block data onwards is getting truncated. I very much think that i need to set a delay in my pc application so it sends every block of 16 bytes of a text file using a delay rountine.
This way the 2nd block of 16 bytes is send after the 1st block of 16 byte is encrypted and send back to the PC. The same goes when i want to send the 3rd block of 16 bytes where i have to wait for the 2nd encrypted block of 16 bytes to come back to PC. This will go on untill all the the 16 byte blocks of a text file is fully encrypted.
Any help to set up a delay rountine in Visual C will be really appreciated.
regards,
ganavel9783