Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 50) sorted by relevance

12

/Zephyr-latest/tests/subsys/secure_storage/psa/its/src/
Dcustom_store.c10 secure_storage_its_uid_t uid; member
15 static int get_existing_entry_index(secure_storage_its_uid_t uid) in get_existing_entry_index() argument
17 __ASSERT_NO_MSG(uid.uid != 0); in get_existing_entry_index()
20 if (!memcmp(&uid, &s_its_entries[i].uid, sizeof(uid))) { in get_existing_entry_index()
27 psa_status_t secure_storage_its_store_set(secure_storage_its_uid_t uid, in secure_storage_its_store_set() argument
31 int index = get_existing_entry_index(uid); in secure_storage_its_store_set()
35 if (s_its_entries[i].uid.uid == 0) { in secure_storage_its_store_set()
43 s_its_entries[index].uid = uid; in secure_storage_its_store_set()
51 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size, in secure_storage_its_store_get() argument
54 const int index = get_existing_entry_index(uid); in secure_storage_its_store_get()
[all …]
Dmain.c117 const psa_storage_uid_t uid = 1 << 16; in ZTEST() local
121 ret = psa_its_set(uid, sizeof(data), data, PSA_STORAGE_FLAG_WRITE_ONCE); in ZTEST()
125 ret = psa_its_get_info(uid, &info); in ZTEST()
129 ret = psa_its_set(uid, sizeof(data), data, PSA_STORAGE_FLAG_NONE); in ZTEST()
132 ret = psa_its_remove(uid); in ZTEST()
Dcustom_transform.c9 secure_storage_its_uid_t uid, size_t data_len, const void *data, in secure_storage_its_transform_to_store() argument
23 secure_storage_its_uid_t uid, size_t stored_data_len, in secure_storage_its_transform_from_store() argument
/Zephyr-latest/subsys/secure_storage/src/its/
Dimplementation.c20 secure_storage_its_uid_t uid, in get_stored_data() argument
26 ret = secure_storage_its_store_get(uid, SECURE_STORAGE_ITS_TRANSFORM_MAX_STORED_DATA_SIZE, in get_stored_data()
38 secure_storage_its_uid_t uid, size_t stored_data_len, in transform_stored_data() argument
45 ret = secure_storage_its_transform_from_store(uid, stored_data_len, stored_data, in transform_stored_data()
54 static psa_status_t get_entry(secure_storage_its_uid_t uid, size_t data_size, uint8_t *data, in get_entry() argument
61 ret = get_stored_data(uid, stored_data, &stored_data_len); in get_entry()
66 return transform_stored_data(uid, stored_data_len, stored_data, data_size, data, data_len, in get_entry()
70 static bool keep_stored_entry(secure_storage_its_uid_t uid, size_t data_length, const void *p_data, in keep_stored_entry() argument
77 *ret = get_entry(uid, sizeof(existing_data), existing_data, &existing_data_len, in keep_stored_entry()
92 " (of length %zu) is identical.", uid.caller_id, uid.uid, data_length); in keep_stored_entry()
[all …]
/Zephyr-latest/subsys/secure_storage/src/its/store/
Dzms.c44 static bool has_forbidden_bits_set(secure_storage_its_uid_t uid) in has_forbidden_bits_set() argument
46 if (uid.uid & GENMASK64(63, ITS_CALLER_ID_POS)) { in has_forbidden_bits_set()
49 uid.caller_id, (unsigned long long)uid.uid); in has_forbidden_bits_set()
55 static uint32_t zms_id_from(secure_storage_its_uid_t uid) in zms_id_from() argument
57 return (uint32_t)uid.uid | (uid.caller_id << ITS_CALLER_ID_POS); in zms_id_from()
60 psa_status_t secure_storage_its_store_set(secure_storage_its_uid_t uid, in secure_storage_its_store_set() argument
65 const uint32_t zms_id = zms_id_from(uid); in secure_storage_its_store_set()
67 if (has_forbidden_bits_set(uid)) { in secure_storage_its_store_set()
84 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size, in secure_storage_its_store_get() argument
89 const uint32_t zms_id = zms_id_from(uid); in secure_storage_its_store_get()
[all …]
Dsettings.c33 static void make_name(secure_storage_its_uid_t uid, char name[static NAME_BUF_SIZE]) in make_name() argument
38 "%x/%llx", uid.caller_id, (unsigned long long)uid.uid); in make_name()
42 psa_status_t secure_storage_its_store_set(secure_storage_its_uid_t uid, in secure_storage_its_store_set() argument
48 make_name(uid, name); in secure_storage_its_store_set()
80 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size, in secure_storage_its_store_get() argument
87 make_name(uid, name); in secure_storage_its_store_get()
103 psa_status_t secure_storage_its_store_remove(secure_storage_its_uid_t uid) in secure_storage_its_store_remove() argument
108 make_name(uid, name); in secure_storage_its_store_remove()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dpsa_its_emul.c34 psa_storage_uid_t uid; member
40 static psa_its_item_t *get_item_by_uid(psa_storage_uid_t uid) in get_item_by_uid() argument
43 if (uid == item[i].uid) { in get_item_by_uid()
54 uint64_t uid; in itsemul_set() local
64 uid = strtoull(name, NULL, 10); in itsemul_set()
65 if (uid == ULLONG_MAX) { in itsemul_set()
70 p_item = get_item_by_uid(uid); in itsemul_set()
76 LOG_ERR("Insufficient sources for %llu", uid); in itsemul_set()
80 p_item->uid = uid; in itsemul_set()
100 psa_status_t psa_its_get_info(psa_storage_uid_t uid, struct psa_storage_info_t *p_info) in psa_its_get_info() argument
[all …]
/Zephyr-latest/subsys/secure_storage/include/psa/
Dprotected_storage.h15 #define ITS_UID (secure_storage_its_uid_t){.uid = uid, \
49 psa_status_t psa_ps_set(psa_storage_uid_t uid, size_t data_length, in psa_ps_set() argument
55 return secure_storage_ps_set(uid, data_length, p_data, create_flags); in psa_ps_set()
82 psa_status_t psa_ps_get(psa_storage_uid_t uid, size_t data_offset, in psa_ps_get() argument
88 return secure_storage_ps_get(uid, data_offset, data_size, p_data, p_data_length); in psa_ps_get()
110 psa_status_t psa_ps_get_info(psa_storage_uid_t uid, struct psa_storage_info_t *p_info) in psa_ps_get_info() argument
115 return secure_storage_ps_get_info(uid, p_info); in psa_ps_get_info()
138 psa_status_t psa_ps_remove(psa_storage_uid_t uid) in psa_ps_remove() argument
143 return secure_storage_ps_remove(uid); in psa_ps_remove()
172 psa_status_t psa_ps_create(psa_storage_uid_t uid, size_t capacity, in psa_ps_create() argument
[all …]
Dinternal_trusted_storage.h19 #define ITS_UID (secure_storage_its_uid_t){.uid = uid, .caller_id = ITS_CALLER_ID}
50 psa_status_t psa_its_set(psa_storage_uid_t uid, size_t data_length, in psa_its_set() argument
76 psa_status_t psa_its_get(psa_storage_uid_t uid, size_t data_offset, in psa_its_get() argument
97 psa_status_t psa_its_get_info(psa_storage_uid_t uid, struct psa_storage_info_t *p_info) in psa_its_get_info() argument
118 psa_status_t psa_its_remove(psa_storage_uid_t uid) in psa_its_remove() argument
/Zephyr-latest/subsys/net/lib/tls_credentials/
Dtls_credentials_trusted.c55 static inline sec_tag_t tls_credential_uid_to_tag(psa_storage_uid_t uid) in tls_credential_uid_to_tag() argument
57 return (uid & 0xffffffff); in tls_credential_uid_to_tag()
61 static inline int tls_credential_uid_to_type(psa_storage_uid_t uid) in tls_credential_uid_to_type() argument
63 return ((uid >> 32) & 0xffff); in tls_credential_uid_to_type()
95 static int credentials_toc_update(unsigned int slot, psa_storage_uid_t uid) in credentials_toc_update() argument
103 credentials_toc[slot] = uid; in credentials_toc_update()
113 static unsigned int tls_credential_toc_find_slot(psa_storage_uid_t uid) in tls_credential_toc_find_slot() argument
118 if (credentials_toc[slot] == uid) { in tls_credential_toc_find_slot()
184 static struct tls_credential *credential_get_from_uid(psa_storage_uid_t uid) in credential_get_from_uid() argument
190 if (tls_credential_toc_find_slot(uid) == CRED_MAX_SLOTS) { in credential_get_from_uid()
[all …]
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/
Dps.h17 psa_status_t secure_storage_ps_set(const psa_storage_uid_t uid, size_t data_length,
21 psa_status_t secure_storage_ps_get(const psa_storage_uid_t uid, size_t data_offset,
25 psa_status_t secure_storage_ps_get_info(const psa_storage_uid_t uid,
29 psa_status_t secure_storage_ps_remove(const psa_storage_uid_t uid);
32 psa_status_t secure_storage_ps_create(psa_storage_uid_t uid, size_t capacity,
36 psa_status_t secure_storage_ps_set_extended(psa_storage_uid_t uid, size_t data_offset,
Dits.h17 psa_status_t secure_storage_its_set(secure_storage_its_uid_t uid, size_t data_length,
21 psa_status_t secure_storage_its_get(secure_storage_its_uid_t uid, size_t data_offset,
25 psa_status_t secure_storage_its_get_info(secure_storage_its_uid_t uid,
29 psa_status_t secure_storage_its_remove(secure_storage_its_uid_t uid);
/Zephyr-latest/subsys/secure_storage/src/its/transform/
Daead.c9 static psa_status_t psa_aead_crypt(psa_key_usage_t operation, secure_storage_its_uid_t uid, in psa_aead_crypt() argument
43 ret = secure_storage_its_transform_aead_get_key(uid, key); in psa_aead_crypt()
77 secure_storage_its_uid_t uid; member
82 secure_storage_its_uid_t uid, size_t data_len, const void *data, in secure_storage_its_transform_to_store() argument
89 const struct additional_data add_data = {.uid = uid, .create_flags = create_flags}; in secure_storage_its_transform_to_store()
99 ret = psa_aead_crypt(PSA_KEY_USAGE_ENCRYPT, uid, stored_entry->nonce, sizeof(add_data), in secure_storage_its_transform_to_store()
109 secure_storage_its_uid_t uid, size_t stored_data_len, in secure_storage_its_transform_from_store() argument
120 const struct additional_data add_data = {.uid = uid, in secure_storage_its_transform_from_store()
124 ret = psa_aead_crypt(PSA_KEY_USAGE_DECRYPT, uid, stored_entry->nonce, sizeof(add_data), in secure_storage_its_transform_from_store()
Daead_get.c63 secure_storage_its_uid_t uid, in secure_storage_its_transform_aead_get_key() argument
70 secure_storage_its_uid_t uid; /* acts as a salt */ in secure_storage_its_transform_aead_get_key() member
83 data.uid = uid; in secure_storage_its_transform_aead_get_key()
95 secure_storage_its_uid_t uid, in secure_storage_its_transform_aead_get_key() argument
98 return hash_data_into_key(sizeof(uid), &uid, key); in secure_storage_its_transform_aead_get_key()
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/its/
Dstore.h24 psa_status_t secure_storage_its_store_set(secure_storage_its_uid_t uid,
37 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size,
46 psa_status_t secure_storage_its_store_remove(secure_storage_its_uid_t uid);
Dtransform.h39 secure_storage_its_uid_t uid, size_t data_len, const void *data,
57 secure_storage_its_uid_t uid, size_t stored_data_len,
Dcommon.h27 psa_storage_uid_t uid; member
/Zephyr-latest/lib/posix/options/
Dpwd.c26 int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result) in getpwuid_r() argument
28 ARG_UNUSED(uid); in getpwuid_r()
/Zephyr-latest/drivers/hwinfo/
Dhwinfo_mcux_syscon.c15 struct uid { struct
22 struct uid dev_id; in z_impl_hwinfo_get_device_id() argument
/Zephyr-latest/dts/x86/intel/
Dalder_lake.dtsi59 acpi-uid = "2";
66 acpi-uid = "0";
73 acpi-uid = "0";
80 acpi-uid = "0";
87 acpi-uid = "0";
94 acpi-uid = "0";
101 acpi-uid = "0";
108 acpi-uid = "0";
115 acpi-uid = "0";
122 acpi-uid = "0";
[all …]
/Zephyr-latest/tests/posix/single_process/src/
Denv.c31 static DEFINE_ENVIRON(uid, "UID", M_UID);
34 static char *environ_for_test[] = {home, uid, pwd, NULL};
165 RESET_ENVIRON(uid, "UID", M_UID); in test_env_before()
168 environ_for_test[1] = uid; in test_env_before()
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/its/transform/
Daead_get.h33 secure_storage_its_uid_t uid,
/Zephyr-latest/soc/intel/common/
Dsoc_gpio.h29 int soc_acpi_gpio_resource_get(int bank_idx, char *hid, char *uid, struct gpio_acpi_res *res);
Dsoc_gpio.c42 int soc_acpi_gpio_resource_get(int bank_idx, char *hid, char *uid, struct gpio_acpi_res *res) in soc_acpi_gpio_resource_get() argument
52 acpi_child = acpi_device_get(hid, uid); in soc_acpi_gpio_resource_get()
/Zephyr-latest/include/zephyr/posix/
Dpwd.h30 int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result);

12