AES 256 bit support for RT1062?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

AES 256 bit support for RT1062?

跳至解决方案
1,952 次查看
Robert123
Contributor III

When I am trying to connect and perform a SSL handshake to a HTTPS server, the function "mbedtls_ssl_handshake" return the following error: -0x0023 MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE.

I am able to use the SDK example "eaimxrt1062_lwip_httpscli_mbedTLS_freertos" to create a HTTPS client and connect to the test server which sends a 128 bit AES key. The server I am trying to connect to sends a 256 bit AES key and the function "mbedtls_aes_setkey_enc" in ksdk_mbedtls.c is the origin of the error message:

 

#ifdef MBEDTLS_AES_ALT_NO_256
    if (keybits == 256u)
    {
        return (MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE);
    }
#endif

 

 

Is there any support for AES-256?

I am using a Embedded Artists imx-rt1062-developers-kit with the following 2.9.3 version of the SDK.

 

标签 (1)
0 项奖励
回复
1 解答
1,936 次查看
mjbcswitzerland
Specialist V

Hi

The mbedtls library includes AES256 as SW implementation in the file aes.c so you should not be missing the support itself.

What happens if you remove the define

MBEDTLS_AES_ALT_NO_256

from the configuration file or the pre-processor defines?

Regards

Mark

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,937 次查看
mjbcswitzerland
Specialist V

Hi

The mbedtls library includes AES256 as SW implementation in the file aes.c so you should not be missing the support itself.

What happens if you remove the define

MBEDTLS_AES_ALT_NO_256

from the configuration file or the pre-processor defines?

Regards

Mark

 

0 项奖励
回复
1,922 次查看
Robert123
Contributor III

Thanks, I removed the hardware acceleration code in the folder /port and increased the SSL frame buffer (MBEDTLS_SSL_MAX_CONTENT_LEN) in the mbedtls_config_client.h

0 项奖励
回复