mbedtls: Fix PSA key encoding
When using TF-M, use the PSA_KEY_TYPE_ECC_KEY_PAIR() macro from
mbedtls_psa_parse_tls_ecc_group(), since that function is supposed to
return a psa_key_type_t. This helps to avoid any misencodings when the
return value from mbedtls_psa_parse_tls_ecc_group() is used directly as
a psa_key_type_t without additional encoding.

Fixes: 0961f312c6b0 ("Make PSA util compatible with Mbed Crypto 3.0.1")
ls
1 parent 0cf6805 commit 61a65c035361245b2b0fdbcb110f9c0ec58160a6
@Jaeden Amero Jaeden Amero authored on 22 Jul 2020
Showing 2 changed files
View
features/mbedtls/inc/mbedtls/psa_util.h
View
features/mbedtls/src/pk.c