File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1478,14 +1478,14 @@ static psa_status_t psa_start_key_creation(
1478
1478
& slot -> data .se .slot_number );
1479
1479
if ( status != PSA_SUCCESS )
1480
1480
return ( status );
1481
+ psa_crypto_prepare_transaction ( PSA_CRYPTO_TRANSACTION_CREATE_KEY );
1482
+ psa_crypto_transaction .key .lifetime = slot -> lifetime ;
1483
+ psa_crypto_transaction .key .slot = slot -> data .se .slot_number ;
1484
+ psa_crypto_transaction .key .id = slot -> persistent_storage_id ;
1485
+ status = psa_crypto_save_transaction ( );
1486
+ if ( status != PSA_SUCCESS )
1487
+ return ( status );
1481
1488
}
1482
- psa_crypto_prepare_transaction ( PSA_CRYPTO_TRANSACTION_CREATE_KEY );
1483
- psa_crypto_transaction .key .lifetime = slot -> lifetime ;
1484
- psa_crypto_transaction .key .slot = slot -> data .se .slot_number ;
1485
- psa_crypto_transaction .key .id = slot -> persistent_storage_id ;
1486
- status = psa_crypto_save_transaction ( );
1487
- if ( status != PSA_SUCCESS )
1488
- return ( status );
1489
1489
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
1490
1490
1491
1491
return ( status );
You can’t perform that action at this time.
0 commit comments