Skip to main content
Visitor II
August 8, 2023
Question

Crypt AES GCM is not correct

  • August 8, 2023
  • 0 replies
  • 927 views

i use STM32F439ZIT6U

and activate crypt function like below capture

 

화면 캡처 2023-08-08 163254.png

and use library function

 

status = HAL_CRYP_Encrypt(&hcryp, (uint32_t *)inputStr, sizeStr, (uint32_t *)outputStr, HAL_MAX_DELAY);
But outpustStr does not come out correctly like the output of other environments like python,  online(https://www.lddgo.net/en/encrypt/aes).
I don't know how to use this library function. Why are the results different?
This topic has been closed for replies.