Other Parts Discussed in Thread: AES-128
Tool/software: TI-RTOS
Hi,
I'm using the TI-RTOS tirtos_tivac_2_16_01_14
there is a bug in the AES library that caused unexpected behavior for our application, and after many hours of trouble shooting, the bug is found.
the bug is in the in AESDataWrite API which is invoked by AESDataProcess. such that i have a packet of data with length 23 byte that i wanted to be encrypted using the AES-128 and even the data length that is passed by the application is 23 but the AESDataWrite will write to the memory of length 32bytes which is multiple of 16 bytes regardless of the application passed value.
I'm writing this thread for two reasons:
1- show the bug to TI so they can fix it.
2- help other people to fix thier application because i know that such issue will cause hours and hours of investigation depending on the random behavior that can be caused by unintended access to the wrong memory location.
Thanks,
Mohammed Fawzy