Home
last modified time | relevance | path

Searched refs:image_size_to_hash (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/u-boot/cmd/mvebu/
H A Dbubt.c79 u32 image_size_to_hash; member
536 u32 image_size_to_hash; in check_image_header() local
563 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()
/OK3568_Linux_fs/u-boot/lib/avb/libavb/
H A Davb_slot_verify.c401 size_t image_size_to_hash = hash_desc.image_size; in load_and_verify_hash_partition() local
404 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()