From bfcae2e436a59d74fcc7d42e19253ebe622253e0 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 5 Jun 2019 11:39:57 +0200 Subject: [PATCH] Improve documentation of psa_internal_allocate_key_slot --- library/psa_crypto_slot_management.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/psa_crypto_slot_management.h b/library/psa_crypto_slot_management.h index aebe7db04..5c1bde146 100644 --- a/library/psa_crypto_slot_management.h +++ b/library/psa_crypto_slot_management.h @@ -57,8 +57,11 @@ void psa_wipe_all_key_slots( void ); /** Find a free key slot and mark it as in use. * - * \param[out] handle On success, a slot number that is not in use. This - * value can be used as a handle to the slot. + * \param[out] handle On success, a slot number that can be used as a + * handle to the slot. The selected slot was not + * in use before. This function marks it as in use + * and otherwise leaves it in a freshly-initialized + * state. * \param[out] p_slot On success, a pointer to the slot. * * \retval #PSA_SUCCESS