cancel
Showing results for 
Search instead for 
Did you mean: 

STSAFE-A110 Data encryption/decryption using secret key

adegrandcourt
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
adegrandcourt
Associate II

Hello,

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

Best regards,

Alex

View solution in original post

1 REPLY 1
adegrandcourt
Associate II

Hello,

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

Best regards,

Alex