When using mbedTLS to setup a TLS connection, and I want to make use of the DCP functionality of the i.MX RT1052 MCU to perform AES and SHA256 calculations in hardware I need to disable the data cache in order for the calculations to be correct. However, I cannot just disable the whole data cache for obvious performance reasons, so what are my options to use HW acceleration for a TLS connection?
- Adapt the used DCP AES and SHA functions so that they invalidate/clean parts of the cache that they are using? Sounds like an error-prone option that I would like to avoid.
Any help is appreciated,