SecureStore.cpp compilation error with Mbed Studio 0.9.0

Hello everyone,

a few days ago I updated mbed studio to version 0.9.0 (before I had version 0.8.1) on macOS Catalina 10.15.3. After updating, every time I compile my project I get the following error:

Compile [ 79.4%]: SecureStore.cpp

[Error] SecureStore.cpp@68,5: unknown type name 'mbedtls_aes_context'; did you mean 'mbedtls_sha512_context'?

[Error] SecureStore.cpp@85,27: unknown type name 'mbedtls_aes_context'

[Error] SecureStore.cpp@109,26: unknown type name 'mbedtls_aes_context'

[Error] SecureStore.cpp@301,9: use of undeclared identifier 'mbedtls_aes_free'

[Error] SecureStore.cpp@383,9: use of undeclared identifier 'mbedtls_aes_free'

[Error] SecureStore.cpp@449,9: use of undeclared identifier 'mbedtls_aes_free'

[Error] SecureStore.cpp@704,9: use of undeclared identifier 'mbedtls_aes_free'

[ERROR] ./mbed-os/features/storage/kvstore/securestore/SecureStore.cpp:68:5: error: unknown type name 'mbedtls_aes_context'; did you mean 'mbedtls_sha512_context'?

mbedtls_aes_context enc_ctx;

^~~~~~~~~~~~~~~~~~~

mbedtls_sha512_context

./mbed-os/features/mbedtls/mbed-crypto/inc/mbedtls/sha512.h:65:1: note: 'mbedtls_sha512_context' declared here

mbedtls_sha512_context;

^

./mbed-os/features/storage/kvstore/securestore/SecureStore.cpp:85:27: error: unknown type name 'mbedtls_aes_context'

int encrypt_decrypt_start(mbedtls_aes_context &enc_aes_ctx, uint8_t *iv, const char *key,

^

./mbed-os/features/storage/kvstore/securestore/SecureStore.cpp:109:26: error: unknown type name 'mbedtls_aes_context'

int encrypt_decrypt_data(mbedtls_aes_context &enc_aes_ctx, const uint8_t *in_buf,

^

./mbed-os/features/storage/kvstore/securestore/SecureStore.cpp:301:9: error: use of undeclared identifier 'mbedtls_aes_free'

mbedtls_aes_free(&ih->enc_ctx);

^

./mbed-os/features/storage/kvstore/securestore/SecureStore.cpp:383:9: error: use of undeclared identifier 'mbedtls_aes_free'

mbedtls_aes_free(&ih->enc_ctx);

^

./mbed-os/features/storage/kvstore/securestore/SecureStore.cpp:449:9: error: use of undeclared identifier 'mbedtls_aes_free'

mbedtls_aes_free(&ih->enc_ctx);

^

./mbed-os/features/storage/kvstore/securestore/SecureStore.cpp:704:9: error: use of undeclared identifier 'mbedtls_aes_free'

mbedtls_aes_free(&ih->enc_ctx);

^

7 errors generated.

Before the update, the project was compiled correctly.

Currently the imported libraries are:

  • CyaSSL_tip ( Commit: 64d4f7cb83d52627463383c03d59fe31edb0308a)

  • mbed-os 5.15.1 ( Commit: e642a7d8b3609a7c903e042cd772f00a5d299088)

  • TARGET_CORDIO_BLUENRG pull/6/head~1 ( Commit: 811f3fea7aa8083c0bbf378e1b51a8b131d7efcc)

How can I solve the problem?

versions

Thanks