Put handle parameter last: psa_generate_derived_key
In psa_generate_derived_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/library/psa_crypto.c b/library/psa_crypto.c
index 6a4f180..b0b7de1 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -4409,8 +4409,8 @@
}
psa_status_t psa_generate_derived_key( const psa_key_attributes_t *attributes,
- psa_key_handle_t *handle,
- psa_crypto_generator_t *generator )
+ psa_crypto_generator_t *generator,
+ psa_key_handle_t *handle )
{
psa_status_t status;
psa_key_slot_t *slot = NULL;