AES 256 bit support for RT1062?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

AES 256 bit support for RT1062?

ソリューションへジャンプ
1,706件の閲覧回数
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,690件の閲覧回数
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,691件の閲覧回数
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,676件の閲覧回数
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 件の賞賛
返信