From 74161ceaca1dbf98b965ef0188840aa594826a4d Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Mon, 8 Jun 2020 19:04:38 +0200 Subject: [PATCH] Clarify behaviour of psa_validate_key_location Signed-off-by: Steven Cooreman --- library/psa_crypto_slot_management.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/psa_crypto_slot_management.h b/library/psa_crypto_slot_management.h index 8841284cdf..46a73257b7 100644 --- a/library/psa_crypto_slot_management.h +++ b/library/psa_crypto_slot_management.h @@ -109,9 +109,10 @@ static inline int psa_key_lifetime_is_external( psa_key_lifetime_t lifetime ) psa_status_t psa_validate_key_location( const psa_key_attributes_t *attributes, psa_se_drv_table_entry_t **p_drv ); -/** Validate that a key's persistence is consistent. +/** Validate that a key's persistence is valid. * - * This function checks whether a key's persistence attribute is consistent. + * This function checks whether a key's declared persistence and key ID are + * valid and supported by the PSA Core in its actual configuration. * * \param[in] attributes The key attributes. *