/trusted-firmware-m-3.4.0/secure_fw/partitions/protected_storage/ |
D | ps_encrypted_object.c | 67 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 …]
|
D | ps_object_system.c | 101 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 …]
|
D | ps_encrypted_object.h | 27 psa_status_t ps_encrypted_object_read(uint32_t fid, 44 psa_status_t ps_encrypted_object_write(uint32_t fid,
|
D | ps_object_table.c | 119 #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()
|
D | ps_object_defs.h | 41 uint32_t fid; /*!< File ID */
|
D | ps_object_table.h | 25 uint32_t fid; /*!< File ID in the file system */ member
|
/trusted-firmware-m-3.4.0/secure_fw/partitions/internal_trusted_storage/flash_fs/ |
D | its_flash_fs.h | 229 const uint8_t *fid); 242 const uint8_t *fid, 261 const uint8_t *fid, 280 const uint8_t *fid, 294 const uint8_t *fid);
|
D | its_flash_fs.c | 198 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 …]
|
D | its_flash_fs_mblock.h | 234 const uint8_t *fid, 339 const uint8_t *fid,
|
D | its_flash_fs_mblock.c | 876 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/ |
D | its_utils.c | 30 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()
|
D | its_utils.h | 93 psa_status_t its_utils_validate_fid(const uint8_t *fid);
|
D | tfm_internal_trusted_storage.c | 63 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()
|