Lines Matching refs:uid
20 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()
99 static psa_status_t store_entry(secure_storage_its_uid_t uid, size_t data_length, in store_entry() argument
106 ret = secure_storage_its_transform_to_store(uid, data_length, p_data, create_flags, in store_entry()
113 ret = secure_storage_its_store_set(uid, stored_data_len, stored_data); in store_entry()
120 psa_status_t secure_storage_its_set(secure_storage_its_uid_t uid, size_t data_length, in secure_storage_its_set() argument
125 if (uid.uid == 0 || (p_data == NULL && data_length != 0)) { in secure_storage_its_set()
137 if (keep_stored_entry(uid, data_length, p_data, create_flags, &ret)) { in secure_storage_its_set()
141 ret = store_entry(uid, data_length, p_data, create_flags); in secure_storage_its_set()
145 psa_status_t secure_storage_its_get(secure_storage_its_uid_t uid, size_t data_offset, in secure_storage_its_get() argument
148 if (uid.uid == 0 || (p_data == NULL && data_size != 0) || p_data_length == NULL) { in secure_storage_its_get()
160 ret = get_stored_data(uid, stored_data, &stored_data_len); in secure_storage_its_get()
167 return transform_stored_data(uid, stored_data_len, stored_data, data_size, p_data, in secure_storage_its_get()
173 ret = transform_stored_data(uid, stored_data_len, stored_data, sizeof(data), data, in secure_storage_its_get()
187 psa_status_t secure_storage_its_get_info(secure_storage_its_uid_t uid, in secure_storage_its_get_info() argument
193 if (uid.uid == 0 || p_info == NULL) { in secure_storage_its_get_info()
197 ret = get_entry(uid, sizeof(data), data, &p_info->size, &p_info->flags); in secure_storage_its_get_info()
204 psa_status_t secure_storage_its_remove(secure_storage_its_uid_t uid) in secure_storage_its_remove() argument
211 if (uid.uid == 0) { in secure_storage_its_remove()
215 ret = get_entry(uid, sizeof(data), data, &data_len, &create_flags); in secure_storage_its_remove()
221 ret = secure_storage_its_store_remove(uid); in secure_storage_its_remove()