psa_allocate_buffer_to_slot() function
Try to allocate a buffer to an empty key slot.
Arguments
slot
Key slot to attach buffer to.
buffer_length
Requested size of the buffer.
Return value
#PSA_SUCCESS The buffer has been successfully allocated. #PSA_ERROR_INSUFFICIENT_MEMORY Not enough memory was available for allocation. #PSA_ERROR_ALREADY_EXISTS Trying to allocate a buffer to a non-empty key slot.