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

◆ cracen_export_public_key()

psa_status_t cracen_export_public_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 <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_management.h>

Export a public key.

Parameters
[in]attributesKey attributes.
[in]key_bufferKey material buffer.
[in]key_buffer_sizeSize of the key buffer in bytes.
[out]dataBuffer to store the public key.
[in]data_sizeSize of the data buffer in bytes.
[out]data_lengthLength of the exported public key in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_INVALID_HANDLEThe key handle is invalid.
PSA_ERROR_BUFFER_TOO_SMALLThe data buffer is too small.