Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / cros_system_api / dbus / cryptohome / rpc.proto
index 7c28263..01dfe93 100644 (file)
@@ -44,6 +44,8 @@ enum CryptohomeErrorCode {
   CRYPTOHOME_ERROR_KEY_NOT_FOUND = 15;
   CRYPTOHOME_ERROR_LOCKBOX_SIGNATURE_INVALID = 16;
   CRYPTOHOME_ERROR_LOCKBOX_CANNOT_SIGN = 17;
+  CRYPTOHOME_ERROR_BOOT_ATTRIBUTE_NOT_FOUND = 18;
+  CRYPTOHOME_ERROR_BOOT_ATTRIBUTES_CANNOT_SIGN = 19;
 }
 
 message AccountIdentifier {
@@ -153,3 +155,37 @@ message VerifyBootLockboxRequest {
 message FinalizeBootLockboxRequest {
 }
 
+message GetKeyDataRequest {
+  // |key| must supply at least one attribute and all others will be treated as
+  // wildcards.  Currently only |key.data().label()| may be supplied.  Like
+  // AuthorizationRequest, support can be added for queries by
+  // |key.data().type()| to return all keys of a certain class, testing
+  // |key.secret()|, or |key.data().provider_data()| entries.
+  optional Key key = 1;
+}
+
+message GetKeyDataReply {
+  extend BaseReply {
+    optional GetKeyDataReply reply = 1002;
+  }
+  repeated KeyData key_data = 1;
+}
+
+message GetBootAttributeRequest {
+  optional string name = 1;
+}
+
+message GetBootAttributeReply {
+  extend BaseReply {
+    optional GetBootAttributeReply reply = 1003;
+  }
+  optional bytes value = 1;
+}
+
+message SetBootAttributeRequest {
+  optional string name = 1;
+  optional bytes value = 2;
+}
+
+message FlushAndSignBootAttributesRequest {
+}