cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to read AES256 encrypted data from microcontroller using UART. I am used the STM32L442KC microcontroller. I am new for AES Encryption / Descryption.

STAR
Associate II

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

0 REPLIES 0