2020-02-23 10:07 PM
I am using atolic truestudio 9.3 . myplaintext is a[1]={97}; uint8_t ciphertext [32]; my code is below,
uint32_t retval=HAL_CRYP_AESECB_Encrypt(&hcryp, plaintext, 8, ciphertext, 5);
if(retval==0)
{
HAL_UART_Transmit(&huart1,(uint8_t *)ciphertext,strlen(ciphertext),5);
}
I am confused to read the encrypted data , I want to read Hex format data.
My data is only 8 bit and Encryption key is 256 bit . wants the exact flow of AES Encryption in STM32.
Thanks & Regards
Ashok