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

Put handle parameter last: psa_import_key

In psa_import_key, change the order of parameters to pass
the pointer where the newly created handle will be stored last.
This is consistent with most other library functions that put inputs
before outputs.
This commit is contained in:
Gilles Peskine
2019-05-15 20:15:10 +02:00
parent 806051f17e
commit 73676cbc50
7 changed files with 79 additions and 134 deletions

View File

@ -1533,9 +1533,9 @@ static psa_status_t psa_check_key_slot_attributes(
}
psa_status_t psa_import_key( const psa_key_attributes_t *attributes,
psa_key_handle_t *handle,
const uint8_t *data,
size_t data_length )
size_t data_length,
psa_key_handle_t *handle )
{
psa_status_t status;
psa_key_slot_t *slot = NULL;