nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_copy_key()

psa_status_t cracen_copy_key ( psa_key_attributes_t * attributes,
const uint8_t * source_key,
size_t source_key_length,
uint8_t * target_key_buffer,
size_t target_key_buffer_size,
size_t * target_key_buffer_length )

#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_management.h>

Copy a key.

Parameters
[in,out]attributesKey attributes for the target key.
[in]source_keySource key material.
[in]source_key_lengthLength of the source key in bytes.
[out]target_key_bufferBuffer to store the copied key.
[in]target_key_buffer_sizeSize of the target key buffer in bytes.
[out]target_key_buffer_lengthLength of the target key buffer for the copied key in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_BUFFER_TOO_SMALLThe target key buffer is too small.