Home
last modified time | relevance | path

Searched refs:so_far (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/
Dverifier.cpp209 size_t so_far = 0; in verify_file() local
210 while (so_far < signed_len) { in verify_file()
211 size_t size = signed_len - so_far; in verify_file()
214 if (need_sha1) SHA_update(&sha1_ctx, addr + so_far, size); in verify_file()
215 if (need_sha256) SHA256_update(&sha256_ctx, addr + so_far, size); in verify_file()
216 so_far += size; in verify_file()
218 double f = so_far / (double)signed_len; in verify_file()
219 if (f > frac + 0.02 || size == so_far) { in verify_file()
/bootable/recovery/uncrypt/
Duncrypt.cpp266 size_t so_far = 0; in produce_block_map() local
267 while (so_far < sb.st_blksize && pos < sb.st_size) { in produce_block_map()
269 … TEMP_FAILURE_RETRY(read(fd, buffers[tail] + so_far, sb.st_blksize - so_far)); in produce_block_map()
274 so_far += this_read; in produce_block_map()
/bootable/recovery/applypatch/
Dapplypatch.c483 size_t so_far = 0; in WriteToPartition() local
484 while (so_far < to_read) { in WriteToPartition()
486 TEMP_FAILURE_RETRY(read(fd, buffer+so_far, to_read-so_far)); in WriteToPartition()
496 so_far += read_count; in WriteToPartition()
/bootable/recovery/updater/
Dblockimg.c115 size_t so_far = 0; in read_all() local
116 while (so_far < size) { in read_all()
117 ssize_t r = TEMP_FAILURE_RETRY(read(fd, data+so_far, size-so_far)); in read_all()
122 so_far += r; in read_all()