Function openthread_sys::otPlatCryptoExportKey

source ยท
pub unsafe extern "C" fn otPlatCryptoExportKey(
    aKeyRef: otCryptoKeyRef,
    aBuffer: *mut u8,
    aBufferLen: usize,
    aKeyLen: *mut usize,
) -> otError
Expand description

Export a key stored in PSA ITS.

@param[in] aKeyRef The key ref to be used for crypto operations. @param[out] aBuffer Pointer to the buffer where key needs to be exported. @param[in] aBufferLen Length of the buffer passed to store the exported key. @param[out] aKeyLen Pointer to return the length of the exported key.

@retval OT_ERROR_NONE Successfully exported @p aKeyRef. @retval OT_ERROR_FAILED Failed to export @p aKeyRef. @retval OT_ERROR_INVALID_ARGS @p aBuffer was NULL

@note This API is only used by OT core when OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE is enabled.