psa_drv_se_validate_slot_number_t
A function that determines whether a slot number is valid for a key. To create a key in a specific slot in a secure element, the core first calls this function to validate the choice of slot number, then calls a function to create the key material in that slot. See the documentation of #psa_drv_se_allocate_key_t for more details. As of the PSA Cryptography API specification version 1.0, there is no way for applications to trigger a call to this function. However some implementations offer the capability to create or declare a key in a specific slot via implementation-specific means, generally for the sake of initial device provisioning or onboarding. Such a mechanism may be added to a future version of the PSA Cryptography API specification. This function may update the driver's persistent data through \p persistent_data. The core will save the updated persistent data at the end of the key creation process. See the description of ::psa_drv_se_allocate_key_t for more information.