cancel
Showing results for 
Search instead for 
Did you mean: 

Why mbedtls, which is part of STCube 1.16 release, does not contain HW acceleration code?

Bogdan Rosandic
Associate II
Posted on May 11, 2017 at 17:47

Recently PolarSSL library has been replaced by mbedtls in STCube Third Party libraries.

PolarSSL used to have STM32 specific code for some of the Polar SSL APIs. Now, in the latest STCube

mbedtls library does not have STM32 specific code which enables usage of hardware HASH and CRYPTO engine.

What is the reason for this ?

Best regards,

Bogdan

#stm32 #crypto #mbedtls #hash
10 REPLIES 10
Posted on December 02, 2017 at 11:06

Hi Bogdan,

I an evaluating X-CUBE-AWS (Amazon Web Service IoT) v1.1.0 in 32F769IDISCOVERY.

http://www.st.com/en/embedded-software/x-cube-aws.html

 

This package is using mbedTLS library. And I want to confirm that this package is using HW Acceleration.

But in the 'stm32f7xx_hal_conf.h' file ' ♯ define HAL_CRYP_MODULE_ENABLED' is not defined

And also I can't find 

HAL_CRYP_Init() in aes.c.

I also downloaded latest STM32CubeMX (v4.23) and also STM32Cube_FW_F7_V1.8.0. But both are having same mbedTLS v2.4.0 and in their aes.c doesn't have HAL_CRYP_Init(). 

So is X-CUBE-AWS is using crypto library and HW acceleration?

And if NO, how to enable?