Lines Matching refs:hash
173 const struct flash_area *fap, uint8_t *hash, uint32_t start_off);
176 const struct flash_area *fap, uint8_t *hash);
285 uint8_t hash[IMAGE_HASH_SIZE]; in bs_list() local
396 rc = boot_serial_get_hash(&hdr, fap, hash, start_off); in bs_list()
398 rc = boot_serial_get_hash(&hdr, fap, hash); in bs_list()
469 zcbor_bstr_encode_ptr(cbor_state, hash, sizeof(hash)); in bs_list()
502 uint8_t hash[IMAGE_HASH_SIZE]; in bs_set() local
531 if ((img_hash.len != sizeof(hash) && img_hash.len != 0) || in bs_set()
620 rc = boot_serial_get_hash(&hdr, fap, hash, start_off); in bs_set()
622 rc = boot_serial_get_hash(&hdr, fap, hash); in bs_set()
627 if (rc == 0 && memcmp(hash, img_hash.value, sizeof(hash)) == 0) { in bs_set()
1602 const struct flash_area *fap, uint8_t *hash, uint32_t start_off) in boot_serial_get_hash() argument
1605 const struct flash_area *fap, uint8_t *hash) in boot_serial_get_hash()
1641 rc = flash_area_read(fap, offset, hash, len); in boot_serial_get_hash()