summaryrefslogtreecommitdiff
path: root/libfec/fec_private.h
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2016-06-03 13:56:07 -0700
committerSami Tolvanen <samitolvanen@google.com>2016-06-06 13:51:23 -0700
commit65cbaeb020b209f3d75d594ebbe49a609dd3c7e7 (patch)
tree664130c5b953ecc77ec6f612c440d128873665a0 /libfec/fec_private.h
parent871e63d9b7e584bc398dd4aa983cf561a5e8394e (diff)
downloadextras-65cbaeb020b209f3d75d594ebbe49a609dd3c7e7.tar.gz
libfec: return raw and corrected verity metadata signatures
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
Diffstat (limited to 'libfec/fec_private.h')
-rw-r--r--libfec/fec_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libfec/fec_private.h b/libfec/fec_private.h
index bde30bd8..238c4e2e 100644
--- a/libfec/fec_private.h
+++ b/libfec/fec_private.h
@@ -88,6 +88,7 @@ struct verity_info {
uint64_t metadata_start; /* offset in file */
uint8_t zero_hash[SHA256_DIGEST_LENGTH];
verity_header header;
+ verity_header ecc_header;
};
struct verity_block_info {