Skip to main content
Associate II
March 26, 2026
Solved

STSAFE-A110 Data encryption/decryption using secret key

  • March 26, 2026
  • 1 reply
  • 136 views

Hello,

I'm developing the software to exchange secure data between a remote host (Linux-OS computer) and a electronic board based on STM32U5 MCU and STSAFE-A110 secure chip. I already implemented the board authentication and I chose to use the symmetric key encryption that the two hosts securely exchange data. For that the two hosts computes each on their own the shared secret after sharing their own public key. That's works fine!

But I don't know what functions of stsafe library to use to encrypt and decrypt data using the computed secret key board-side.

Could you please help me?

Best regards,

Alex

Best answer by adegrandcourt

Hello,

I simply used the mbedtls_cipher_crypt() from mbed library to encrypt and decrypt exchanged messages.

Best regards,

Alex

1 reply

adegrandcourtAuthorBest answer
Associate II
March 27, 2026

Hello,

I simply used the mbedtls_cipher_crypt() from mbed library to encrypt and decrypt exchanged messages.

Best regards,

Alex