#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_management.h>
Generate a key.
- Parameters
-
| [in] | attributes | Key attributes. |
| [out] | key_buffer | Buffer to represent the generated key. |
| [in] | key_buffer_size | Size of the key buffer in bytes. |
| [out] | key_buffer_length | Length of key buffer for the generated key in bytes. |
- Return values
-
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_NOT_SUPPORTED | The key type or size is not supported. |
| PSA_ERROR_BUFFER_TOO_SMALL | The key buffer is too small. |