Skip to content

Commit 0cf6805

Browse files
committed
mbedtls: Specify key length with TF-M
When using TF-M, be sure to specify the length of the key. Fixes: 0961f31 ("Make PSA util compatible with Mbed Crypto 3.0.1")
1 parent 1bd138b commit 0cf6805

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/mbedtls/inc/mbedtls/psa_util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ static inline psa_key_type_t mbedtls_psa_parse_tls_ecc_group(
452452
uint16_t tls_ecc_grp_reg_id, size_t *bits )
453453
{
454454
#if TARGET_TFM
455+
*bits = PSA_ECC_CURVE_BITS( tls_ecc_grp_reg_id );
455456
return( (psa_ecc_curve_t) tls_ecc_grp_reg_id );
456457
#else
457458
const mbedtls_ecp_curve_info *curve_info =

0 commit comments

Comments
 (0)