Lines Matching defs:hs
87 compute_hash(bblk_hs_t *hs, unsigned char *dest, bblk_hash_t *hash)
89 if (hs == NULL || dest == NULL || hash == NULL)
92 hash->compute_hash(dest, hs->src_buf, hs->src_size);
97 prepare_and_write_einfo(unsigned char *dest, char *infostr, bblk_hs_t *hs,
123 if (compute_hash(hs, data, hashinfo) < 0) {
195 add_einfo(char *extra, char *updt_str, bblk_hs_t *hs, uint32_t avail_space,
213 ret = prepare_and_write_einfo(dest, updt_str, hs, avail_space,
239 bblk_hs_t hs;
244 hs.src_buf = (unsigned char *)core_img;
245 hs.src_size = core_size;
249 if (add_einfo((char *)ext_hdr, vers_str, &hs, avail_space, 0, &space)
263 bblk_hs_t hs;
267 hs.src_buf = (unsigned char *)core_img;
268 hs.src_size = core_size;
272 if (add_einfo((char *)ext_hdr, vers_str, &hs, avail_space, 1, NULL)