mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
1bd138b6fc
commit
0cf680593c
|
@ -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 )
|
uint16_t tls_ecc_grp_reg_id, size_t *bits )
|
||||||
{
|
{
|
||||||
#if TARGET_TFM
|
#if TARGET_TFM
|
||||||
|
*bits = PSA_ECC_CURVE_BITS( tls_ecc_grp_reg_id );
|
||||||
return( (psa_ecc_curve_t) tls_ecc_grp_reg_id );
|
return( (psa_ecc_curve_t) tls_ecc_grp_reg_id );
|
||||||
#else
|
#else
|
||||||
const mbedtls_ecp_curve_info *curve_info =
|
const mbedtls_ecp_curve_info *curve_info =
|
||||||
|
|
Loading…
Reference in New Issue