Home
last modified time | relevance | path

Searched refs:fid (Results 1 – 13 of 13) sorted by relevance

/trusted-firmware-m-3.4.0/secure_fw/partitions/protected_storage/
Dps_encrypted_object.c67 static psa_status_t ps_object_auth_decrypt(uint32_t fid, in ps_object_auth_decrypt() argument
93 (const uint8_t *)&fid, in ps_object_auth_decrypt()
94 sizeof(fid), in ps_object_auth_decrypt()
119 static psa_status_t ps_object_auth_encrypt(uint32_t fid, in ps_object_auth_encrypt() argument
149 (const uint8_t *)&fid, in ps_object_auth_encrypt()
150 sizeof(fid), in ps_object_auth_encrypt()
166 psa_status_t ps_encrypted_object_read(uint32_t fid, struct ps_object_t *obj) in ps_encrypted_object_read() argument
181 err = psa_its_get(fid, PS_OBJECT_START_POSITION, in ps_encrypted_object_read()
201 err = ps_object_auth_decrypt(fid, decrypt_size, obj); in ps_encrypted_object_read()
209 psa_status_t ps_encrypted_object_write(uint32_t fid, struct ps_object_t *obj) in ps_encrypted_object_write() argument
[all …]
Dps_object_system.c101 err = psa_its_get(g_obj_tbl_info.fid, in ps_read_object()
113 if (g_ps_object.header.fid != g_obj_tbl_info.fid || in ps_read_object()
120 err = psa_its_get(g_obj_tbl_info.fid, in ps_read_object()
144 g_ps_object.header.fid = g_obj_tbl_info.fid; in ps_write_object()
150 return psa_its_set(g_obj_tbl_info.fid, wrt_size, in ps_write_object()
194 err = ps_encrypted_object_read(g_obj_tbl_info.fid, &g_ps_object); in ps_object_read()
252 err = ps_encrypted_object_read(g_obj_tbl_info.fid, &g_ps_object); in ps_object_create()
275 old_fid = g_obj_tbl_info.fid; in ps_object_create()
297 &g_obj_tbl_info.fid); in ps_object_create()
306 err = ps_encrypted_object_write(g_obj_tbl_info.fid, &g_ps_object); in ps_object_create()
[all …]
Dps_encrypted_object.h27 psa_status_t ps_encrypted_object_read(uint32_t fid,
44 psa_status_t ps_encrypted_object_write(uint32_t fid,
Dps_object_table.c119 #define PS_OBJECT_FS_ID_TO_IDX(fid) ((fid - 1) - \ argument
927 uint32_t fid; in ps_object_table_get_free_fid() local
938 fid = PS_OBJECT_FS_ID(idx); in ps_object_table_get_free_fid()
944 err = psa_its_remove(fid); in ps_object_table_get_free_fid()
949 *p_fid = fid; in ps_object_table_get_free_fid()
984 idx = PS_OBJECT_FS_ID_TO_IDX(obj_tbl_info->fid); in ps_object_table_set_obj_tbl_info()
1023 obj_tbl_info->fid = PS_OBJECT_FS_ID(idx); in ps_object_table_get_obj_tbl_info()
Dps_object_defs.h41 uint32_t fid; /*!< File ID */
Dps_object_table.h25 uint32_t fid; /*!< File ID in the file system */ member
/trusted-firmware-m-3.4.0/secure_fw/partitions/internal_trusted_storage/flash_fs/
Dits_flash_fs.h229 const uint8_t *fid);
242 const uint8_t *fid,
261 const uint8_t *fid,
280 const uint8_t *fid,
294 const uint8_t *fid);
Dits_flash_fs.c198 const uint8_t *fid) in its_flash_fs_file_exist() argument
203 err = its_flash_fs_mblock_get_file_idx(fs_ctx, fid, &idx); in its_flash_fs_file_exist()
212 const uint8_t *fid, in its_flash_fs_file_get_info() argument
220 err = its_flash_fs_mblock_get_file_idx(fs_ctx, fid, &idx); in its_flash_fs_file_get_info()
232 if (memcmp(fid, tmp_metadata.id, ITS_FILE_ID_SIZE)) { in its_flash_fs_file_get_info()
244 const uint8_t *fid, in its_flash_fs_file_write() argument
271 err = its_flash_fs_mblock_get_file_idx(fs_ctx, fid, &old_idx); in its_flash_fs_file_write()
325 err = its_flash_fs_mblock_reserve_file(fs_ctx, fid, use_spare, in its_flash_fs_file_write()
573 const uint8_t *fid) in its_flash_fs_file_delete() argument
579 err = its_flash_fs_mblock_get_file_idx(fs_ctx, fid, &del_file_idx); in its_flash_fs_file_delete()
[all …]
Dits_flash_fs_mblock.h234 const uint8_t *fid,
339 const uint8_t *fid,
Dits_flash_fs_mblock.c876 const uint8_t *fid, size_t size, in its_mblock_reserve_file() argument
896 memcpy(file_meta->id, fid, ITS_FILE_ID_SIZE); in its_mblock_reserve_file()
998 const uint8_t *fid, in its_flash_fs_mblock_get_file_idx() argument
1012 if (!memcmp(tmp_metadata.id, fid, ITS_FILE_ID_SIZE)) { in its_flash_fs_mblock_get_file_idx()
1196 const uint8_t *fid, in its_flash_fs_mblock_reserve_file() argument
1206 err = its_mblock_reserve_file(fs_ctx, fid, size, flags, file_meta, in its_flash_fs_mblock_reserve_file()
/trusted-firmware-m-3.4.0/secure_fw/partitions/internal_trusted_storage/
Dits_utils.c30 psa_status_t its_utils_validate_fid(const uint8_t *fid) in its_utils_validate_fid() argument
36 if (*fid++) { in its_utils_validate_fid()
Dits_utils.h93 psa_status_t its_utils_validate_fid(const uint8_t *fid);
Dtfm_internal_trusted_storage.c63 uint8_t *fid) in tfm_its_get_fid() argument
65 memcpy(fid, (const void *)&client_id, sizeof(client_id)); in tfm_its_get_fid()
66 memcpy(fid + sizeof(client_id), (const void *)&uid, sizeof(uid)); in tfm_its_get_fid()