AnsweredAssumed Answered

Correct HAL APIs for Crypto AES mode

Question asked by Jumshed Akhtar on Jul 12, 2018
Latest reply on Jul 12, 2018 by Clive Two.Zero

Hi, I am trying to use CRYP_AES_GCM example from STM32Cube_FW_F7_V1.11.0 for stm32f769I-eval.  I see, stm32f7xx_hal_cryp.c has two set of APIs. By default the APIs under " #if defined (CRYP)  " are enabled. and these APIs seem not supporting GCM mode as HAL_CRYP_Init() is not even setting chaining mode. but HAL_CRYP_Init() under #if defined (AES)  " has some code to set chaining mode.

Are APIs under #if defined (AES)  " are also well tested?

But Other extended APIs for AES GCM mode are under " #if defined (CRYP)  " in stm32f7xx_hal_cryp_ex.c  file.

So I  could not conclude which one is right option either " #if defined (CRYP)  " or " #if defined (AES)  ". Can any one help if some one has used these APIs.