Lines Matching refs:shdr
34 struct shdr { struct
53 static inline size_t shdr_get_size(const struct shdr *shdr) in shdr_get_size() argument
55 size_t s = sizeof(*shdr); in shdr_get_size()
57 if (ADD_OVERFLOW(s, shdr->hash_size, &s) || in shdr_get_size()
58 ADD_OVERFLOW(s, shdr->sig_size, &s)) in shdr_get_size()
65 #define SHDR_GET_HASH(x) (uint8_t *)(((struct shdr *)(x)) + 1)
190 struct shdr *shdr_alloc_and_copy(size_t offs, const void *img, size_t img_size);
193 static inline void shdr_free(struct shdr *shdr) in shdr_free() argument
195 free(shdr); in shdr_free()
210 TEE_Result shdr_load_pub_key(const struct shdr *shdr, size_t offs,
216 const struct shdr *shdr);
226 TEE_Result shdr_verify_signature(const struct shdr *shdr);