1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

PSA: Adapt cipher.c, pk.c, pk_wrap.c to new key slot allocation API

This commit is contained in:
Hanno Becker
2019-01-25 14:29:12 +00:00
parent 32809e8c70
commit e34f636f8d
3 changed files with 3 additions and 5 deletions

View File

@ -576,7 +576,7 @@ int mbedtls_pk_wrap_as_opaque( mbedtls_pk_context *pk,
mbedtls_psa_parse_tls_ecc_group ( curve_id ) );
/* allocate a key slot */
if( PSA_SUCCESS != psa_allocate_key( key_type, d_len * 8, &key ) )
if( PSA_SUCCESS != psa_allocate_key( &key ) )
return( MBEDTLS_ERR_PK_HW_ACCEL_FAILED );
/* set policy */