Lines Matching refs:data_length
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
88 if (existing_data_len == data_length && in keep_stored_entry()
90 !memcmp(existing_data, p_data, data_length)) { 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()
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()
131 if (data_length > CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE) { in secure_storage_its_set()
133 data_length, CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE); 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()