| /base/tee/tee_os_framework/services/ssa/src/secure_storage_agent/ |
| D | sfs.c | 86 int32_t get_hmac_from_meta_data(struct sfd_t *sfd, uint8_t *hmac_buff, uint32_t hmac_buff_len) in get_hmac_from_meta_data() 156 static TEE_Result get_key_value_by_version(struct sfd_t *sfd, uint8_t **key_value, uint32_t *key_va… in get_key_value_by_version() 169 bool check_ssa_version_type(struct sfd_t *sfd) in check_ssa_version_type() 176 const struct sfd_t *sfd) in calculate_hmac() 200 TEE_Result ssa_close_and_delete(struct sfd_t *sfd, bool is_delete) in ssa_close_and_delete() 225 int32_t get_hmac_of_data(struct sfd_t *sfd, uint8_t *hmac_buff, uint32_t hmac_buff_len) in get_hmac_of_data() 239 static bool judge_valid_version(const struct sfd_t *sfd) in judge_valid_version() 245 static TEE_Result switch_arch_version_rename(struct sfd_t *sfd, const uint8_t *new_obj_id, uint32_t… in switch_arch_version_rename() 293 TEE_Result calc_filename_datahmac_hash(meta_storage_t *sfs_meta, const struct sfd_t *sfd) in calc_filename_datahmac_hash() 339 static int32_t get_last_crypt_block_padding_size(const struct sfd_t *sfd) in get_last_crypt_block_padding_size() [all …]
|
| D | tee_ssa_sfs.c | 31 static bool check_invalid_version(const struct sfd_t *sfd) in check_invalid_version() 36 static bool judge_valid_version(const struct sfd_t *sfd) in judge_valid_version() 42 static int32_t get_encrypted_file_name(uint8_t **encrypted_file_name, const struct sfd_t *sfd) in get_encrypted_file_name() 55 static TEE_Result ssa_fs_fseek_blk_start(const struct sfd_t *sfd, uint32_t start_pos) in ssa_fs_fseek_blk_start() 68 static TEE_Result ssa_fs_fseek_blk_end(const struct sfd_t *sfd, uint32_t end_pos, uint32_t end_offs… in ssa_fs_fseek_blk_end() 82 …t encrypt_blocks(const uint8_t *src, uint32_t len, uint8_t *dst, const struct sfd_t *sfd, uint32_t… in encrypt_blocks() 103 static int32_t write_hmac_to_meta_data(const struct sfd_t *sfd, const uint8_t *hmac_buf, uint32_t b… in write_hmac_to_meta_data() 142 static TEE_Result update_master_hmac(struct sfd_t *sfd) in update_master_hmac() 165 …32_t set_last_blocksize_to_meta_hdr(int nfd, uint32_t last_block_realsize, const struct sfd_t *sfd) in set_last_blocksize_to_meta_hdr() 224 static int32_t set_last_crypt_block_realsize(const struct sfd_t *sfd, uint32_t len) in set_last_crypt_block_realsize() [all …]
|
| D | ssa_helper.c | 84 struct sfd_t *sfd = NULL; in create_object_proc() local 155 TEE_Result ssa_internal_fcreate(const char *file_name, const TEE_UUID *uuid, struct sfd_t **sfd) in ssa_internal_fcreate() 183 TEE_Result ssa_internal_fopen(const char *file_name, const TEE_UUID *uuid, struct sfd_t **sfd) in ssa_internal_fopen() 212 uint32_t ssa_internal_fwrite(struct sfd_t *sfd, const uint8_t *in_buff, uint32_t len) in ssa_internal_fwrite() 248 void ssa_internal_fclose(struct sfd_t *sfd) in ssa_internal_fclose() 267 void ssa_internal_fremove(struct sfd_t *sfd) in ssa_internal_fremove()
|
| D | secure_storage_msg.c | 65 static TEE_Result get_object_attr_header(struct sfd_t *sfd, uint8_t *buff, uint32_t buff_size) in get_object_attr_header() 86 static TEE_Result ssa_read_attr(struct sfd_t *sfd, uint8_t *vm_addr, union ssa_agent_msg *msg, in ssa_read_attr() 110 static bool judge_valid_version(struct sfd_t *sfd) in judge_valid_version() 175 struct sfd_t *sfd = NULL; in open_object() local 312 struct sfd_t *sfd = NULL; in ssa_get_object_attr() local 388 struct sfd_t *sfd) in ssa_write_object_data() 416 struct sfd_t *sfd = NULL; in ssa_write_object() local 556 struct sfd_t *sfd = NULL; in ssa_seek_object() local 660 struct sfd_t *sfd = NULL; in ssa_truncate_object() local 750 mem_map_info_t *new_object_id_info, struct sfd_t *sfd, const TEE_UUID *uuid) in ssa_rename_object_proc() [all …]
|
| D | ssa_enumerator.c | 126 static TEE_Result internal_open_enum_file(const char *partition, uint32_t sndr, struct sfd_t **sfd) in internal_open_enum_file() 160 struct sfd_t *sfd = NULL; in get_enum_file_size() local 214 struct sfd_t *sfd = NULL; in start_enumerator() local 312 …atic TEE_Result internal_create_enum_file(const char *partition, uint32_t sndr, struct sfd_t **sfd, in internal_create_enum_file() 453 struct sfd_t *sfd = NULL; in add_objinfo_into_enum_file() local 515 struct sfd_t *sfd = NULL; in update_objinfo_in_enum_file() local 570 struct sfd_t *sfd = NULL; in rename_obj_in_enum_file() local 650 struct sfd_t *sfd = NULL; in delete_obj_in_enum_file() local
|
| D | ssa_crypto.c | 25 static TEE_Result aes_xts_crypto_check(const struct sfd_t *sfd, const struct memref_t *tweak, in aes_xts_crypto_check() 47 const struct sfd_t *sfd) in aes_xts_crypto_init() 85 TEE_Result aes_xts_crypto(uint32_t mode, const struct sfd_t *sfd, const struct memref_t *tweak, in aes_xts_crypto()
|
| D | secure_storage_agent.c | 310 bool check_shared_access(const struct sfd_t *sfd, uint32_t flags) in check_shared_access() 376 uint32_t create_file_instance_to_client(uint32_t sender, struct sfd_t *sfd) in create_file_instance_to_client() 492 uint32_t flags, struct sfd_t **sfd, TEE_Result *error) in get_file_handle() 536 uint32_t open_file(meta_data_t *meta, uint32_t sndr, uint32_t flags, struct sfd_t **sfd, TEE_Result… in open_file() 684 …ic void ssa_write_attributes(const uint8_t *attributes, uint32_t attributes_len, struct sfd_t *sfd, in ssa_write_attributes() 708 …atic void ssa_write_initial_data(const uint8_t *initial_data, uint32_t data_len, struct sfd_t *sfd, in ssa_write_initial_data() 754 struct sfd_t **sfd, uint32_t *obj, TEE_Result *error) in create_object()
|
| D | sfs_internal.h | 57 struct sfd_t *sfd; /* pointer to secure file descriptor */ member
|
| /base/startup/init/services/loopevent/signal/ |
| D | le_signal.c | 83 int sfd = signalfd(-1, &mask, SFD_NONBLOCK | SFD_CLOEXEC); in LE_CreateSignalTask() local 109 int sfd = signalfd(GetSocketFd(signalHandle), &task->mask, SFD_NONBLOCK | SFD_CLOEXEC); in LE_AddSignal() local 131 int sfd = signalfd(GetSocketFd(signalHandle), &task->mask, SFD_NONBLOCK | SFD_CLOEXEC); in LE_RemoveSignal() local
|