XenevaOS
Loading...
Searching...
No Matches
psa_crypto_its.h
Go to the documentation of this file.
1
4/*
5 * Copyright The Mbed TLS Contributors
6 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
7 */
8
9#ifndef PSA_CRYPTO_ITS_H
10#define PSA_CRYPTO_ITS_H
11
12#include <stddef.h>
13#include <stdint.h>
14
15#include <psa/crypto_types.h>
16#include <psa/crypto_values.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
25
29
30#define PSA_STORAGE_FLAG_NONE 0
31#define PSA_STORAGE_FLAG_WRITE_ONCE (1 << 0)
40
42#define PSA_STORAGE_SUPPORT_SET_EXTENDED (1 << 0)
43
44#define PSA_ITS_API_VERSION_MAJOR 1
45#define PSA_ITS_API_VERSION_MINOR 1
66 uint32_t data_length,
67 const void *p_data,
68 psa_storage_create_flags_t create_flags);
69
91 uint32_t data_offset,
92 uint32_t data_length,
93 void *p_data,
94 size_t *p_data_length);
95
111 struct psa_storage_info_t *p_info);
112
126
127#ifdef __cplusplus
128}
129#endif
130
131#endif /* PSA_CRYPTO_ITS_H */
unsigned int uint32_t
Definition acefiex.h:163
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
PSA cryptography module: type aliases.
PSA cryptography module: macros to build and analyze integer values.
int32_t psa_status_t
Function return status.
Definition crypto_types.h:59
psa_status_t psa_its_set(psa_storage_uid_t uid, uint32_t data_length, const void *p_data, psa_storage_create_flags_t create_flags)
create a new or modify an existing uid/value pair
uint32_t psa_storage_create_flags_t
Flags used when creating a data entry.
Definition psa_crypto_its.h:24
psa_status_t psa_its_get(psa_storage_uid_t uid, uint32_t data_offset, uint32_t data_length, void *p_data, size_t *p_data_length)
Retrieve the value associated with a provided uid.
psa_status_t psa_its_remove(psa_storage_uid_t uid)
Remove the provided key and its associated data from the storage.
psa_status_t psa_its_get_info(psa_storage_uid_t uid, struct psa_storage_info_t *p_info)
Retrieve the metadata about the provided uid.
uint64_t psa_storage_uid_t
A type for UIDs used for identifying data.
Definition psa_crypto_its.h:28
A container for metadata associated with a specific uid.
Definition psa_crypto_its.h:36
psa_storage_create_flags_t flags
Definition psa_crypto_its.h:38
uint32_t size
Definition psa_crypto_its.h:37