mbedtls: Specify key length with TF-M

When using TF-M, be sure to specify the length of the key.

Fixes: 0961f312c6 ("Make PSA util compatible with Mbed Crypto 3.0.1")
pull/13337/head
Jaeden Amero 2020-07-22 16:50:57 +01:00
parent 1bd138b6fc
commit 0cf680593c
1 changed files with 1 additions and 0 deletions

View File

@ -452,6 +452,7 @@ static inline psa_key_type_t mbedtls_psa_parse_tls_ecc_group(
uint16_t tls_ecc_grp_reg_id, size_t *bits )
{
#if TARGET_TFM
*bits = PSA_ECC_CURVE_BITS( tls_ecc_grp_reg_id );
return( (psa_ecc_curve_t) tls_ecc_grp_reg_id );
#else
const mbedtls_ecp_curve_info *curve_info =