otPlatCryptoExportKey() function
Export a key stored in PSA ITS.
Arguments
aKeyRef
The key ref to be used for crypto operations.
aBuffer
Pointer to the buffer where key needs to be exported.
aBufferLen
Length of the buffer passed to store the exported key.
aKeyLen
Pointer to return the length of the exported key.
Return value
OT_ERROR_NONE Successfully exported @p aKeyRef. OT_ERROR_FAILED Failed to export @p aKeyRef. OT_ERROR_INVALID_ARGS @p aBuffer was NULL
Notes
This API is only used by OT core when `OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE` is enabled.