MBEDTLS AES - AES - GCM mode

Hi ,

Currently I am testing the mbedtls_gcm_self_test();
I hope this is self test is for AES - GCM mode. But in below API mentioned the parameter mode is: “MBEDTLS_MODE_ECB”

In gcm.c file → mbedtls_gcm_setkey(); function
cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, MBEDTLS_MODE_ECB );

Is it correct for AES GCM mode? When I trying to change this mode to “MBEDTLS_MODE_GCM” getting hardfault. Ijust want to know for AES-GCM mode can I use the above mbedtls_gcm_self_test(); function or not? Please help me.

Hi,
This topic was not categorized until lately, so I apologize for delay in reply.
In case this issue is still valid, GCm in Mbed TLS supports AES. The mbedtls_gcm_self_test() uses AES-GCM.
ECB mode of operation is only the building block for a single AES block operation, used in GCM.
Regards,
Mbed TLS Team member
Ron