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().
![]()
LOCAL_OUTPUT_ALLOC(output_external, output_size, output);
psa_crypto_local_output_alloc() is called by 26 functions and calls 1 function:
![]()
psa_crypto_local_output_alloc()
psa_crypto_local_output_alloc() reads 1 variable and writes 3 variables:
![]()
psa_crypto_local_output_alloc()