1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Remove calls to psa_allocate_key

In PSA 1.0 keys are allocated implicitly by other functions
(like psa_import_key) and psa_allocate_key is not needed and does not
exist anymore.
This commit is contained in:
Janos Follath
2019-08-08 10:33:26 +01:00
parent 53b8ec27a2
commit 1239d70870
2 changed files with 0 additions and 9 deletions

View File

@ -635,9 +635,6 @@ static int tls_prf_generic( mbedtls_md_type_t md_type,
psa_key_derivation_operation_t generator =
PSA_KEY_DERIVATION_OPERATION_INIT;
if( ( status = psa_allocate_key( &master_slot ) ) != PSA_SUCCESS )
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
if( md_type == MBEDTLS_MD_SHA384 )
alg = PSA_ALG_TLS12_PRF(PSA_ALG_SHA_384);
else