#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_management.h>
Import a key.
- Parameters
-
| [in] | attributes | Key attributes. |
| [in] | data | Key data to import. |
| [in] | data_length | Length of the key data in bytes. |
| [out] | key_buffer | Buffer to represent the stored key. |
| [in] | key_buffer_size | Size of the key buffer in bytes. |
| [out] | key_buffer_length | Length of key buffer for the imported key in bytes. |
| [out] | key_bits | Size of the key in bits. |
- Return values
-
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_INVALID_ARGUMENT | The key data is invalid. |
| PSA_ERROR_BUFFER_TOO_SMALL | The key buffer is too small. |