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 330b9a4586
commit 242da1e2c2
3 changed files with 3 additions and 5 deletions

View File

@ -308,7 +308,7 @@ int mbedtls_cipher_setkey( mbedtls_cipher_context_t *ctx,
return( MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE );
/* Allocate a key slot to use. */
status = psa_allocate_key( key_type, key_bitlen, &cipher_psa->slot );
status = psa_allocate_key( &cipher_psa->slot );
if( status != PSA_SUCCESS )
return( MBEDTLS_ERR_CIPHER_HW_ACCEL_FAILED );