![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_wrap_key | ( | const psa_key_attributes_t * | wrapping_key_attributes, |
| const uint8_t * | wrapping_key_data, | ||
| size_t | wrapping_key_size, | ||
| psa_algorithm_t | alg, | ||
| const psa_key_attributes_t * | key_attributes, | ||
| const uint8_t * | key_data, | ||
| size_t | key_size, | ||
| uint8_t * | data, | ||
| size_t | data_size, | ||
| size_t * | data_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_wrap.h>
Perform a key wrap operation.
| [in] | wrapping_key_attributes | Key attributes for the wrapping key. |
| [in] | wrapping_key_data | Wrapping key material. |
| [in] | wrapping_key_size | Size of the wrapping key in bytes. |
| [in] | alg | Key wrapping algorithm. |
| [in] | key_attributes | Key attributes for the key that must be wrapped. |
| [in] | key_data | Key material of the key to wrap. |
| [in] | key_size | Size of the key that must be wrapped in bytes. |
| [out] | data | Buffer where the wrapped key data is to be written. |
| [in] | data_size | Size of the data buffer in bytes. |
| [out] | data_length | On success, the number of bytes that make up the wrapped key data. |
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_INVALID_ARGUMENT | |
| PSA_ERROR_NOT_SUPPORTED | |
| PSA_ERROR_BUFFER_TOO_SMALL |