Skip to content
Commit 34c4b544 authored by Valerio Setti's avatar Valerio Setti Committed by Flavio Ceolin
Browse files

net: tls_credentials: use PSA to compute SHA256 when BUILD_WITH_TFM



When using the TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE there is
BUILD_WITH_TFM enabled which means that we can take advantage of
TFM (thorugh PSA interface) to compute the SHA256 hash.

This removes the need for the built-in implementation of
mbedtls_sha256() on the non-secure image (unless it's used somewhere
else, of course) and therefore it helps in reducing the memory
footprint.

Signed-off-by: default avatarValerio Setti <vsetti@baylibre.com>
parent 7e2f06cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment