psa_free_key_slot() function
Return a key slot to the free list. Call this function when a slot obtained from psa_reserve_free_key_slot() is no longer in use. If multi-threading is enabled, the caller must hold the global key slot mutex.
Arguments
slice_idx
The slice containing the slot. This is `slot->slice_index` when the slot is obtained from psa_reserve_free_key_slot().
Return value
#PSA_SUCCESS \emptydescription #PSA_ERROR_CORRUPTION_DETECTED This function attempted to operate on a key slot which was in an unexpected state.