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

◆ cracen_generate_key()

psa_status_t cracen_generate_key ( const psa_key_attributes_t * attributes,
uint8_t * key_buffer,
size_t key_buffer_size,
size_t * key_buffer_length )

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

Generate a key.

Parameters
[in]attributesKey attributes.
[out]key_bufferBuffer to represent the generated key.
[in]key_buffer_sizeSize of the key buffer in bytes.
[out]key_buffer_lengthLength of key buffer for the generated key in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_NOT_SUPPORTEDThe key type or size is not supported.
PSA_ERROR_BUFFER_TOO_SMALLThe key buffer is too small.