Miscellaneous documentation improvements

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2020-11-11 15:04:25 +01:00
parent 19daca9b2e
commit 7587ae49cb
2 changed files with 5 additions and 1 deletions

View file

@ -1191,6 +1191,9 @@ static psa_status_t psa_restrict_key_policy(
* usage flags set in \p usage. If \p alg is nonzero, the key must allow
* operations with this algorithm.
*
* In case of a persistent key, the function loads the description of the key
* into a key slot if not already done.
*
* On success, the access counter of the returned key slot is incremented by
* one. It is the responsibility of the caller to call
* psa_decrement_key_slot_access_count() when it does not access the key slot

View file

@ -82,7 +82,8 @@ static inline int psa_key_id_is_volatile( psa_key_id_t key_id )
*
* \retval #PSA_SUCCESS
* The pointer to the key slot containing the description of the key
* identified by \p key was returned.
* identified by \p key was returned. The key slot counter was
* implemented.
* \retval #PSA_ERROR_BAD_STATE
* The library has not been initialized.
* \retval #PSA_ERROR_INVALID_HANDLE