![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_export_key | ( | const psa_key_attributes_t * | attributes, |
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| uint8_t * | data, | ||
| size_t | data_size, | ||
| size_t * | data_length ) |
#include <cracen_psa_key_management.h>
Export a key.
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material buffer. |
| [in] | key_buffer_size | Size of the key buffer in bytes. |
| [out] | data | Buffer to store the exported key. |
| [in] | data_size | Size of the data buffer in bytes. |
| [out] | data_length | Length of the exported key in bytes. |
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_INVALID_HANDLE | The key handle is invalid. |
| PSA_ERROR_BUFFER_TOO_SMALL | The data buffer is too small. |