psa_crypto_local_input_alloc() function
Allocate a local copy of an input buffer and copy the contents into it.
Arguments
input
Pointer to input buffer.
input_len
Length of the input buffer.
local_input
Pointer to a psa_crypto_local_input_t struct containing a local input copy.
Return value
#PSA_SUCCESS, if the buffer was successfully copied. #PSA_ERROR_INSUFFICIENT_MEMORY, if a copy of the buffer cannot be allocated.