Associate
August 25, 2022
Question
STM32F777 - CRYP Coprocessor AES GCM tag does not match mbedTLS AES GCM tag
- August 25, 2022
- 4 replies
- 3588 views
Hello,
I am working on a project using mbedTLS and Keil MDK to make an HTTPS server running on an STM32F777. To speed up encryption/decryption, I am trying to make use of the CRYP coprocessor (mostly focusing on speeding up AES GCM calculations). My implementation is based on the example given here: https://github.com/STMicroelectronics/STM32CubeL5/tree/master/Projects/STM32L562E-DK/Applications/mbedTLS/Crypto_Selftest.
However, when I try to run with my alternative AES GCM implementation, the CRYP coprocessor does not calculate the same tag as mbedTLS. This causes the SSL handshake to fail.
I've attached my files for the GCM alternative implementation here. Am I missing something with the way I'm presenting my data?
