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.
diff --git a/include/psa/crypto.h b/include/psa/crypto.h
index bdea08b..1228147 100644
--- a/include/psa/crypto.h
+++ b/include/psa/crypto.h
@@ -631,9 +631,9 @@
* results in this error code.
*/
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);
/**
* \brief Destroy a key.