Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
transform.h
Go to the documentation of this file.
1/* Copyright (c) 2024 Nordic Semiconductor
2 * SPDX-License-Identifier: Apache-2.0
3 */
4#ifndef SECURE_STORAGE_ITS_TRANSFORM_H
5#define SECURE_STORAGE_ITS_TRANSFORM_H
6
15
18 = CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE
20 + CONFIG_SECURE_STORAGE_ITS_TRANSFORM_OUTPUT_OVERHEAD };
21
22#define SECURE_STORAGE_ITS_TRANSFORM_DATA_SIZE(stored_data_len) \
23 (stored_data_len - (SECURE_STORAGE_ITS_TRANSFORM_MAX_STORED_DATA_SIZE \
24 - CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE))
25
39 secure_storage_its_uid_t uid, size_t data_len, const void *data,
42 size_t *stored_data_len);
43
57 secure_storage_its_uid_t uid, size_t stored_data_len,
59 size_t data_size, void *data, size_t *data_len,
60 psa_storage_create_flags_t *create_flags);
61
62#endif
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
uint32_t psa_storage_create_flags_t
Flags used when creating an entry.
Definition storage_common.h:26
The UID (caller + entry IDs) of an ITS entry.
Definition common.h:25
uint8_t secure_storage_packed_create_flags_t
Definition common.h:11
Common definitions of the secure storage subsystem's ITS APIs.
int32_t psa_status_t
Definition error.h:13
psa_status_t secure_storage_its_transform_from_store(secure_storage_its_uid_t uid, size_t stored_data_len, const uint8_t stored_data[static SECURE_STORAGE_ITS_TRANSFORM_MAX_STORED_DATA_SIZE], size_t data_size, void *data, size_t *data_len, psa_storage_create_flags_t *create_flags)
Transforms and validates the stored data of an ITS entry for use.
psa_status_t secure_storage_its_transform_to_store(secure_storage_its_uid_t uid, size_t data_len, const void *data, secure_storage_packed_create_flags_t create_flags, uint8_t stored_data[static SECURE_STORAGE_ITS_TRANSFORM_MAX_STORED_DATA_SIZE], size_t *stored_data_len)
Transforms the data of an ITS entry for storage.
@ SECURE_STORAGE_ITS_TRANSFORM_MAX_STORED_DATA_SIZE
Definition transform.h:17