From 38a2b7a6a3215b2d062da23b9945bbecd889e277 Mon Sep 17 00:00:00 2001 From: Ryan Everett Date: Wed, 17 Jan 2024 11:45:44 +0000 Subject: [PATCH] Extend psa_wipe_key_slot documentation Signed-off-by: Ryan Everett --- library/psa_crypto_core.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/psa_crypto_core.h b/library/psa_crypto_core.h index 376337e16f..b5b9c54515 100644 --- a/library/psa_crypto_core.h +++ b/library/psa_crypto_core.h @@ -190,7 +190,10 @@ static inline psa_key_slot_number_t psa_key_slot_get_slot_number( * The slot has been successfully wiped. * \retval #PSA_ERROR_CORRUPTION_DETECTED * The slot's state was PSA_SLOT_FULL or PSA_SLOT_PENDING_DELETION, and - * the amount of registered readers was not equal to 1. + * the amount of registered readers was not equal to 1. Or, + * the slot's state was PSA_SLOT_EMPTY. Or, + * the slot's state was PSA_SLOT_FILLING, and the amount + * of registered readers was not equal to 0. */ psa_status_t psa_wipe_key_slot(psa_key_slot_t *slot);