Home
last modified time | relevance | path

Searched refs:img_size (Results 1 – 5 of 5) sorted by relevance

/optee_os-3.20.0/core/crypto/
A Dsigned_hdr.c28 if (ADD_OVERFLOW(offs, sizeof(struct shdr), &end) || end > img_size) in shdr_alloc_and_copy()
32 if (ADD_OVERFLOW(offs, shdr_size, &end) || end > img_size) in shdr_alloc_and_copy()
174 end > img_size) in check_attrs()
179 end > img_size) in check_attrs()
261 if (shdr->img_size < sizeof(*subkey)) in shdr_load_pub_key()
264 if (ADD_OVERFLOW(shdr->img_size, offs, &end) || end > ns_img_size) in shdr_load_pub_key()
270 memcpy(img + shdr->hash_size, ns_img + offs, shdr->img_size); in shdr_load_pub_key()
281 crypto_hash_update(ctx, (const void *)subkey, shdr->img_size) || in shdr_load_pub_key()
288 res = check_attrs(subkey, shdr->img_size); in shdr_load_pub_key()
304 if (ADD_OVERFLOW(key->name_size, offs + shdr->img_size, &end) || in shdr_load_pub_key()
[all …]
/optee_os-3.20.0/scripts/
A Dsign_encrypt.py478 [magic, img_type, img_size, algo_value, hash_size,
521 if len(self.ciphertext) != img_size:
528 if len(self.img) != img_size:
539 self.attr = self.inf[offs:offs + img_size -
565 if len(self.img) != img_size:
627 if len(ciphertext) != img_size:
637 if len(img) != img_size:
640 offs += img_size
653 [magic, img_type, img_size, algo_value, hash_size,
678 print(' img_size: {} bytes'.format(img_size))
[all …]
/optee_os-3.20.0/core/include/
A Dsigned_hdr.h37 uint32_t img_size; member
190 struct shdr *shdr_alloc_and_copy(size_t offs, const void *img, size_t img_size);
/optee_os-3.20.0/core/kernel/
A Dree_fs_ta.c296 if (ADD_OVERFLOW(offs, shdr->img_size, &offs) || in ree_fs_ta_open()
438 if (ta_size != sz + shdr->img_size) { in ree_fs_ta_open()
459 shdr->img_size); in ree_fs_ta_open()
467 if (ta_size != offs + shdr->img_size) { in ree_fs_ta_open()
503 *size = handle->shdr->img_size; in ree_fs_ta_get_size()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dsecure_partition.c59 uint32_t img_size; member
1141 if (ADD_OVERFLOW(sp_pkg_hdr->img_offset, sp_pkg_hdr->img_size, in process_sp_pkg()
1186 sp->sp_img.image.size = sp_pkg_hdr->img_size; in process_sp_pkg()

Completed in 10 milliseconds