psa_crypto_local_output_alloc() function
Allocate a local copy of an output buffer.
Arguments
output
Pointer to output buffer.
output_len
Length of the output buffer.
local_output
Pointer to a psa_crypto_local_output_t struct to populate with the local output copy.
Return value
#PSA_SUCCESS, if the buffer was successfully copied. #PSA_ERROR_INSUFFICIENT_MEMORY, if a copy of the buffer cannot be allocated.
Notes
This does not copy any data from the original output buffer but only allocates a buffer whose contents will be copied back to the original in a future call to psa_crypto_local_output_free().