Skip to content

Commit da79e92

Browse files
psa_get_key_attributes: state that *attributes must be valid on input
This was implicitly conveyed by the general requirement of initializing attribute structure and by declaring \p attributes to be an in-out parameter, but it is better to make this explicit.
1 parent 6669753 commit da79e92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/psa/crypto.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ static size_t psa_get_key_bits(const psa_key_attributes_t *attributes);
348348
* you must call psa_reset_key_attributes() to free these resources.
349349
*
350350
* \param[in] handle Handle to the key to query.
351-
* \param[in,out] attributes On success, the attributes of the key.
351+
* \param[in,out] attributes On entry, this structure must be in a
352+
* valid state.
353+
* On success, the attributes of the key.
352354
* On failure, equivalent to a
353355
* freshly-initialized structure.
354356
*

0 commit comments

Comments
 (0)