Home | History | Annotate | Download | only in bootlockbox
      1 // Copyright 2018 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // The messages in this file comprise the DBus/Proto interface for bootlockboxd.
      6 
      7 syntax = "proto2";
      8 
      9 option optimize_for = LITE_RUNTIME;
     10 
     11 package cryptohome;
     12 
     13 enum BootLockboxErrorCode {
     14   BOOTLOCKBOX_ERROR_NOT_SET = 0;
     15   BOOTLOCKBOX_ERROR_CANNOT_STORE = 1;
     16   BOOTLOCKBOX_ERROR_CANNOT_READ = 2;
     17   BOOTLOCKBOX_ERROR_TPM_COMM_ERROR = 3;
     18 }
     19 
     20 message BootLockboxBaseReply {
     21   optional BootLockboxErrorCode error = 1;
     22 
     23   extensions 1000 to max;
     24 }
     25 
     26 message StoreBootLockboxRequest {
     27   // The key for the data.
     28   optional bytes key = 1;
     29   // The data to be stored.
     30   optional bytes data = 2;
     31 }
     32 
     33 message ReadBootLockboxRequest {
     34   // The key for the data to read.
     35   optional bytes key = 1;
     36 }
     37 
     38 message ReadBootLockboxReply {
     39   extend BootLockboxBaseReply {
     40     optional ReadBootLockboxReply reply = 1001;
     41   }
     42   optional bytes data = 1;
     43 }
     44 
     45 message FinalizeNVRamBootLockboxRequest {
     46 }
     47