/trusted-firmware-m-3.5.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 | 124 #define PS_OBJECT_FS_ID_TO_IDX(fid) ((fid - 1) - \ argument 932 uint32_t fid; in ps_object_table_get_free_fid() local 943 fid = PS_OBJECT_FS_ID(idx); in ps_object_table_get_free_fid() 949 err = psa_its_remove(fid); in ps_object_table_get_free_fid() 954 *p_fid = fid; in ps_object_table_get_free_fid() 989 idx = PS_OBJECT_FS_ID_TO_IDX(obj_tbl_info->fid); in ps_object_table_set_obj_tbl_info() 1028 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.5.0/secure_fw/partitions/internal_trusted_storage/flash_fs/ |
D | its_flash_fs.h | 229 const uint8_t *fid, 248 const uint8_t *fid, 267 const uint8_t *fid, 281 const uint8_t *fid);
|
D | its_flash_fs.c | 198 const uint8_t *fid, in its_flash_fs_file_get_info() argument 206 err = its_flash_fs_mblock_get_file_idx_meta(fs_ctx, fid, &idx, &tmp_metadata); in its_flash_fs_file_get_info() 218 const uint8_t *fid, in its_flash_fs_file_write() argument 245 err = its_flash_fs_mblock_get_file_idx_meta(fs_ctx, fid, &old_idx, &file_meta); in its_flash_fs_file_write() 293 err = its_flash_fs_mblock_reserve_file(fs_ctx, fid, use_spare, in its_flash_fs_file_write() 541 const uint8_t *fid) in its_flash_fs_file_delete() argument 547 err = its_flash_fs_mblock_get_file_idx_meta(fs_ctx, fid, &del_file_idx, NULL); in its_flash_fs_file_delete() 556 const uint8_t *fid, in its_flash_fs_file_read() argument 566 err = its_flash_fs_mblock_get_file_idx_meta(fs_ctx, fid, &idx, &tmp_metadata); in its_flash_fs_file_read()
|
D | its_flash_fs_mblock.h | 237 const uint8_t *fid, 343 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_meta() argument 1013 if (!memcmp(tmp_metadata.id, fid, ITS_FILE_ID_SIZE)) { in its_flash_fs_mblock_get_file_idx_meta() 1200 const uint8_t *fid, in its_flash_fs_mblock_reserve_file() argument 1210 err = its_mblock_reserve_file(fs_ctx, fid, size, flags, file_meta, in its_flash_fs_mblock_reserve_file()
|
/trusted-firmware-m-3.5.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 | 80 uint8_t *fid) in tfm_its_get_fid() argument 82 memcpy(fid, (const void *)&client_id, sizeof(client_id)); in tfm_its_get_fid() 83 memcpy(fid + sizeof(client_id), (const void *)&uid, sizeof(uid)); in tfm_its_get_fid()
|