#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_management.h>
Export a public key.
- Parameters
-
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material buffer. |
| [in] | key_buffer_size | Size of the key buffer in bytes. |
| [out] | data | Buffer to store the public key. |
| [in] | data_size | Size of the data buffer in bytes. |
| [out] | data_length | Length of the exported public key in bytes. |
- Return values
-
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_INVALID_HANDLE | The key handle is invalid. |
| PSA_ERROR_BUFFER_TOO_SMALL | The data buffer is too small. |