Added boot_hash and GetBootInfo().
Change-Id: I5de580a910291eb9a6db626e5444facbedb6c617
diff --git a/nugget/proto/nugget/app/keymaster/keymaster.proto b/nugget/proto/nugget/app/keymaster/keymaster.proto
index 3344210..8766cdf 100644
--- a/nugget/proto/nugget/app/keymaster/keymaster.proto
+++ b/nugget/proto/nugget/app/keymaster/keymaster.proto
@@ -97,6 +97,7 @@
*/
// Only callable once per boot.
rpc SetSystemVersionInfo (SetSystemVersionInfoRequest) returns (SetSystemVersionInfoResponse);
+ rpc GetBootInfo (GetBootInfoRequest) returns (GetBootInfoResponse);
// These are implemented with a enum, so new RPCs must be appended, and
// deprecated RPCs need placeholders.
@@ -374,3 +375,13 @@
// Specified in keymaster_defs.proto:ErrorCode
ErrorCode error_code = 1;
}
+
+message GetBootInfoRequest {}
+
+message GetBootInfoResponse {
+ ErrorCode error_code = 1;
+ bool is_unlocked = 2;
+ BootColor boot_color = 3;
+ bytes boot_key = 4; // This is a SHA256 digest.
+ bytes boot_hash = 5; // This is a SHA256 digest.
+}