Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
The AEAD ITS transform module API. More...
Go to the source code of this file.
Functions | |
void | secure_storage_its_transform_aead_get_scheme (psa_key_type_t *key_type, psa_algorithm_t *alg) |
Returns the key type and algorithm to use for the AEAD operations. | |
psa_status_t | secure_storage_its_transform_aead_get_key (secure_storage_its_uid_t uid, uint8_t key[static CONFIG_SECURE_STORAGE_ITS_TRANSFORM_AEAD_KEY_SIZE]) |
Returns the encryption key to use for an ITS entry's AEAD operations. | |
psa_status_t | secure_storage_its_transform_aead_get_nonce (uint8_t nonce[static CONFIG_SECURE_STORAGE_ITS_TRANSFORM_AEAD_NONCE_SIZE]) |
Generates a nonce for an AEAD operation. | |
The AEAD ITS transform module API.
The functions declared in this header allow customization of the AEAD implementation of the ITS transform module. They are not meant to be called directly other than by the AEAD ITS transform module. This header may be included when providing a custom implementation of one or more of these functions (CONFIG_SECURE_STORAGE_ITS_TRANSFORM_AEAD_*_CUSTOM
).
psa_status_t secure_storage_its_transform_aead_get_key | ( | secure_storage_its_uid_t | uid, |
uint8_t | key[static CONFIG_SECURE_STORAGE_ITS_TRANSFORM_AEAD_KEY_SIZE] ) |
Returns the encryption key to use for an ITS entry's AEAD operations.
[in] | uid | The UID of the ITS entry for whom the returned key is used. |
[out] | key | The encryption key. |
PSA_SUCCESS
on success, anything else on failure. psa_status_t secure_storage_its_transform_aead_get_nonce | ( | uint8_t | nonce[static CONFIG_SECURE_STORAGE_ITS_TRANSFORM_AEAD_NONCE_SIZE] | ) |
Generates a nonce for an AEAD operation.
[out] | nonce | The generated nonce. |
PSA_SUCCESS
on success, anything else on failure. void secure_storage_its_transform_aead_get_scheme | ( | psa_key_type_t * | key_type, |
psa_algorithm_t * | alg ) |
Returns the key type and algorithm to use for the AEAD operations.
[out] | key_type | The key type to use. |
[out] | alg | The algorithm to use. |