#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_management.h>
Copy a key.
- Parameters
-
| [in,out] | attributes | Key attributes for the target key. |
| [in] | source_key | Source key material. |
| [in] | source_key_length | Length of the source key in bytes. |
| [out] | target_key_buffer | Buffer to store the copied key. |
| [in] | target_key_buffer_size | Size of the target key buffer in bytes. |
| [out] | target_key_buffer_length | Length of the target key buffer for the copied key in bytes. |
- Return values
-
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_BUFFER_TOO_SMALL | The target key buffer is too small. |