From a7d245a4a220f7581ce9bf4497ab130a502d0730 Mon Sep 17 00:00:00 2001 From: mohammad1603 Date: Tue, 17 Apr 2018 00:40:08 -0700 Subject: [PATCH] Fix return error values description Fix return PSA_ERROR_INVALID_ARGUMENT description for psa_set_key_lifetime() and psa_get_key_lifetime() --- include/psa/crypto.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 07c1da1f9..658403232 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -604,8 +604,7 @@ typedef uint32_t psa_key_lifetime_t; * \retval PSA_SUCCESS * Success. * \retval PSA_ERROR_INVALID_ARGUMENT - * The key slot is invalid, - * or the key data is not correctly formatted. + * The key slot is invalid. */ psa_status_t psa_get_key_lifetime(psa_key_slot_t key, psa_key_lifetime_t *lifetime); @@ -623,7 +622,7 @@ psa_status_t psa_get_key_lifetime(psa_key_slot_t key, * Success. * \retval PSA_ERROR_INVALID_ARGUMENT * The key slot is invalid, - * or the key data is not correctly formatted. + * or the lifetime value is invalid. */ psa_status_t psa_set_key_lifetime(psa_key_slot_t key, psa_key_lifetime_t lifetime);