summaryrefslogtreecommitdiff
path: root/libfec/fec_verity.cpp
AgeCommit message (Collapse)Author
2016-10-20libfec: correct verity table only if it's invalidSami Tolvanen
To increase reliability in the case where part of the partition is corrupt and error correction might fail, attempt to use raw verity table before the corrected one. Bug: 32288104 Test: tested on angler Change-Id: I201fdc6162c87b1808979486df5707d683a6d20c
2016-07-27Fix clang-tidy performance warnings in libfec.Chih-Hung Hsieh
* Use const reference type for for-loop index variables to avoid unnecessary copy. Bug: 30413223 Change-Id: I9819261087a5385fe580f805be44a2407f35cdf5 Test: build with WITH_TIDY=1
2016-06-08libfec: return raw and corrected verity metadata signaturesSami Tolvanen
Since it's not possible for libfec to identify whether the signature field was successfully corrected, return both and allow the caller to validate either signature. Bug: 28943429 Change-Id: Ie913c21ba1d07d6df4c6feeb7226b2ec963f4d19 (cherry picked from commit 65cbaeb020b209f3d75d594ebbe49a609dd3c7e7)
2015-12-04Track rename from base/ to android-base/.Elliott Hughes
Change-Id: Ic15d4778c7accd1382de0b440a437aba2cf67016
2015-10-29libfec: remove verity validation cacheSami Tolvanen
Caching block validation results increases libfec memory usage and does not provide comparable benefits in normal use cases, which do not involve re-reading the same blocks. Change-Id: I71ac47a7059b350b16e32207932004f3f147abcb
2015-10-20libfec: add a function to disable veritySami Tolvanen
Add fec_verity_set_status to allow disabling verity on userdebug builds by updating metadata magic. Change-Id: I02f83b0d1d4e7ef5cd5d13a37ff0b84f17e23376
2015-09-25Error correction: Add libfec to read encoded dataSami Tolvanen
Add libfec to read files or partitions with error-correcting codes appended to them. Uses verity metadata to speed up I/O and improve error correction effectiveness. Bug: 21893453 Change-Id: I94b95058b084418019fc96595bb6055df36e2c2b