Searched refs:image_size_to_hash (Results 1 – 2 of 2) sorted by relevance
79 u32 image_size_to_hash; member536 u32 image_size_to_hash; in check_image_header() local563 image_size_to_hash = info->image_size_to_hash; in check_image_header()584 if (image_size_to_hash == 0) { in check_image_header()593 sha1_update(&hash1_text, buff, image_size_to_hash); in check_image_header()599 sha256_update(&hash256_text, buff, image_size_to_hash); in check_image_header()
401 size_t image_size_to_hash = hash_desc.image_size; in load_and_verify_hash_partition() local404 if (image_size_to_hash > image_size) { in load_and_verify_hash_partition()405 image_size_to_hash = image_size; in load_and_verify_hash_partition()408 sha256_ctx.tot_len = hash_desc.salt_len + image_size_to_hash; in load_and_verify_hash_partition()411 avb_sha256_update(&sha256_ctx, image_buf, image_size_to_hash); in load_and_verify_hash_partition()415 sha512_ctx.tot_len = hash_desc.salt_len + image_size_to_hash; in load_and_verify_hash_partition()418 avb_sha512_update(&sha512_ctx, image_buf, image_size_to_hash); in load_and_verify_hash_partition()