mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 11:51:04 +00:00
Bug fix: don't start a transaction for non-SE keys
This commit is contained in:
parent
340b127ed1
commit
4aea1036c6
|
@ -1478,7 +1478,6 @@ static psa_status_t psa_start_key_creation(
|
|||
&slot->data.se.slot_number );
|
||||
if( status != PSA_SUCCESS )
|
||||
return( status );
|
||||
}
|
||||
psa_crypto_prepare_transaction( PSA_CRYPTO_TRANSACTION_CREATE_KEY );
|
||||
psa_crypto_transaction.key.lifetime = slot->lifetime;
|
||||
psa_crypto_transaction.key.slot = slot->data.se.slot_number;
|
||||
|
@ -1486,6 +1485,7 @@ static psa_status_t psa_start_key_creation(
|
|||
status = psa_crypto_save_transaction( );
|
||||
if( status != PSA_SUCCESS )
|
||||
return( status );
|
||||
}
|
||||
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
|
||||
|
||||
return( status );
|
||||
|
|
Loading…
Reference in a new issue