app: aboot: Add AVB2.0 changes to aboot files
Incorporate AVB2.0 changes to aboot.Add function
to free boot resources and provide support for
custom_key validation required for yellow state
AVB 2.0 validation. Fix compilation issues for
AVB as well.
Change-Id: Ie196174028dd3dac04c58845fe09a75f055d3094
diff --git a/app/aboot/devinfo.h b/app/aboot/devinfo.h
index ed43f43..f7b02b4 100644
--- a/app/aboot/devinfo.h
+++ b/app/aboot/devinfo.h
@@ -36,6 +36,9 @@
#define DEVICE_MAGIC_SIZE 13
#define MAX_PANEL_ID_LEN 64
#define MAX_VERSION_LEN 64
+#define MAX_VB_PARTITIONS 32
+#define MAX_USER_KEY_SIZE 2048
+#define SHA256_DIGEST_LENGTH 32
enum unlock_type {
UNLOCK = 0,
@@ -53,5 +56,8 @@
char bootloader_version[MAX_VERSION_LEN];
char radio_version[MAX_VERSION_LEN];
bool verity_mode; // 1 = enforcing, 0 = logging
+ uint64_t rollback_index[MAX_VB_PARTITIONS];
+ uint32_t user_public_key_length;
+ uint8_t user_public_key[MAX_USER_KEY_SIZE];
};
#endif