Home
last modified time | relevance | path

Searched refs:ehdr (Results 1 – 15 of 15) sorted by relevance

/optee_os/core/tee/
A Dtee_ta_enc_manager.c12 TEE_Result tee_ta_decrypt_init(void **enc_ctx, struct shdr_encrypted_ta *ehdr, in tee_ta_decrypt_init() argument
18 res = crypto_authenc_alloc_ctx(enc_ctx, ehdr->enc_algo); in tee_ta_decrypt_init()
22 res = tee_otp_get_ta_enc_key(ehdr->flags & SHDR_ENC_KEY_TYPE_MASK, in tee_ta_decrypt_init()
28 SHDR_ENC_GET_IV(ehdr), ehdr->iv_size, in tee_ta_decrypt_init()
29 ehdr->tag_size, 0, len); in tee_ta_decrypt_init()
53 TEE_Result tee_ta_decrypt_final(void *enc_ctx, struct shdr_encrypted_ta *ehdr, in tee_ta_decrypt_final() argument
60 SHDR_ENC_GET_TAG(ehdr), ehdr->tag_size); in tee_ta_decrypt_final()
/optee_os/out/arm/export-ta_arm64/host_include/
A Dsigned_hdr.h112 static inline size_t shdr_enc_get_size(const struct shdr_encrypted_ta *ehdr) in shdr_enc_get_size() argument
114 size_t s = sizeof(*ehdr); in shdr_enc_get_size()
116 if (ADD_OVERFLOW(s, ehdr->iv_size, &s) || in shdr_enc_get_size()
117 ADD_OVERFLOW(s, ehdr->tag_size, &s)) in shdr_enc_get_size()
A Delf_common.h137 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
138 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
139 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
140 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/optee_os/core/include/
A Dsigned_hdr.h112 static inline size_t shdr_enc_get_size(const struct shdr_encrypted_ta *ehdr) in shdr_enc_get_size() argument
114 size_t s = sizeof(*ehdr); in shdr_enc_get_size()
116 if (ADD_OVERFLOW(s, ehdr->iv_size, &s) || in shdr_enc_get_size()
117 ADD_OVERFLOW(s, ehdr->tag_size, &s)) in shdr_enc_get_size()
/optee_os/out/arm/export-ta_arm32/host_include/
A Dsigned_hdr.h112 static inline size_t shdr_enc_get_size(const struct shdr_encrypted_ta *ehdr) in shdr_enc_get_size() argument
114 size_t s = sizeof(*ehdr); in shdr_enc_get_size()
116 if (ADD_OVERFLOW(s, ehdr->iv_size, &s) || in shdr_enc_get_size()
117 ADD_OVERFLOW(s, ehdr->tag_size, &s)) in shdr_enc_get_size()
A Delf_common.h137 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
138 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
139 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
140 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/optee_os/core/kernel/
A Dree_fs_ta.c67 struct shdr_encrypted_ta *ehdr; member
139 struct shdr_encrypted_ta *ehdr = NULL; in ree_fs_ta_open() local
249 ehdr = malloc(ehdr_sz); in ree_fs_ta_open()
250 if (!ehdr) { in ree_fs_ta_open()
255 memcpy(ehdr, ((uint8_t *)ta + offs), ehdr_sz); in ree_fs_ta_open()
257 res = crypto_hash_update(hash_ctx, (uint8_t *)ehdr, ehdr_sz); in ree_fs_ta_open()
261 res = tee_ta_decrypt_init(&handle->enc_ctx, ehdr, in ree_fs_ta_open()
267 handle->ehdr = ehdr; in ree_fs_ta_open()
289 free(ehdr); in ree_fs_ta_open()
502 handle->ehdr, NULL, NULL, 0); in ree_fs_ta_read()
[all …]
/optee_os/ldelf/
A Dta_elf.c107 ehdr->e_type != ET_DYN || ehdr->e_machine != EM_ARM || in e32_parse_ehdr()
117 elf->e_entry = ehdr->e_entry; in e32_parse_ehdr()
118 elf->e_phoff = ehdr->e_phoff; in e32_parse_ehdr()
119 elf->e_shoff = ehdr->e_shoff; in e32_parse_ehdr()
120 elf->e_phnum = ehdr->e_phnum; in e32_parse_ehdr()
121 elf->e_shnum = ehdr->e_shnum; in e32_parse_ehdr()
135 ehdr->e_type != ET_DYN || ehdr->e_machine != EM_AARCH64 || in e64_parse_ehdr()
136 ehdr->e_flags || ehdr->e_phentsize != sizeof(Elf64_Phdr) || in e64_parse_ehdr()
142 elf->e_entry = ehdr->e_entry; in e64_parse_ehdr()
143 elf->e_phoff = ehdr->e_phoff; in e64_parse_ehdr()
[all …]
/optee_os/core/include/tee/
A Dtee_ta_enc_manager.h15 TEE_Result tee_ta_decrypt_init(void **enc_ctx, struct shdr_encrypted_ta *ehdr,
19 TEE_Result tee_ta_decrypt_final(void *enc_ctx, struct shdr_encrypted_ta *ehdr,
/optee_os/out/arm/export-ta_arm32/include/
A Delf_common.h137 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
138 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
139 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
140 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/optee_os/out/arm/export-ta_arm64/include/
A Delf_common.h137 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
138 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
139 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
140 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/optee_os/lib/libutee/include/
A Delf_common.h137 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
138 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
139 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
140 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/optee_os/scripts/
A Dsign_encrypt.py241 ehdr = struct.pack('<IIHH',
248 h.update(ehdr)
262 f.write(ehdr)
/optee_os/out/arm/export-ta_arm32/scripts/
A Dsign_encrypt.py241 ehdr = struct.pack('<IIHH',
248 h.update(ehdr)
262 f.write(ehdr)
/optee_os/out/arm/export-ta_arm64/scripts/
A Dsign_encrypt.py241 ehdr = struct.pack('<IIHH',
248 h.update(ehdr)
262 f.write(ehdr)

Completed in 59 milliseconds