Lines Matching refs:offs
20 struct shdr *shdr_alloc_and_copy(size_t offs, const void *img, size_t img_size) in shdr_alloc_and_copy() argument
28 if (ADD_OVERFLOW(offs, sizeof(struct shdr), &end) || end > img_size) in shdr_alloc_and_copy()
31 shdr_size = SHDR_GET_SIZE((const struct shdr *)(img_va + offs)); in shdr_alloc_and_copy()
32 if (!shdr_size || ADD_OVERFLOW(offs, shdr_size, &end) || end > img_size) in shdr_alloc_and_copy()
41 memcpy(shdr, (const uint8_t *)img + offs, shdr_size); in shdr_alloc_and_copy()
165 res = crypto_bignum_bin2bn(base + pub_exp->offs, pub_exp->size, key->e); in load_rsa_key()
168 res = crypto_bignum_bin2bn(base + modulus->offs, modulus->size, key->n); in load_rsa_key()
193 if (ADD_OVERFLOW(attrs[n].offs, attrs[n].size, &end) || in check_attrs()
261 TEE_Result shdr_load_pub_key(const struct shdr *shdr, size_t offs, in shdr_load_pub_key() argument
279 if (ADD_OVERFLOW(shdr->img_size, offs, &end) || end > ns_img_size) in shdr_load_pub_key()
285 memcpy(img + shdr->hash_size, ns_img + offs, shdr->img_size); in shdr_load_pub_key()
319 if (ADD_OVERFLOW(key->name_size, offs + shdr->img_size, &end) || in shdr_load_pub_key()
325 ns_img + offs + shdr->img_size, key->name_size); in shdr_load_pub_key()