renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
182 stars 81 forks source link

MbedTLS ECDH operation requires key format to be set to "Plaintext and Wrapped (Vendor)" #297

Open michaelthomasj opened 8 months ago

michaelthomasj commented 8 months ago

Issue

When using the "mbedTLS (Crypto Only)" module in RA FSP v4.5.0, v4.6.0 and v5.0.0 the user has the option to configure the Key Format for ECC to "Plaintext Only" or "Plaintext and Wrapped (Vendor)". On devices where both options are available, selecting "Plaintext Only" will result in a failed operation when ECDH operations are performed (e.g. for a TLS connection).

Workaround

Change the ECC Key Format to "Plaintext and Wrapped (Vendor)" from the default "Plaintext Only" option when performing ECDH operations. In future releases the default option will be set to "Plaintext and Wrapped (Vendor)".

michaelthomasj commented 1 month ago

This is being internally tracked using FSPRA-1984