Home | History | Annotate | Download | only in common
      1 //
      2 // Copyright (C) 2015 The Android Open Source Project
      3 //
      4 // Licensed under the Apache License, Version 2.0 (the "License");
      5 // you may not use this file except in compliance with the License.
      6 // You may obtain a copy of the License at
      7 //
      8 //      http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unless required by applicable law or agreed to in writing, software
     11 // distributed under the License is distributed on an "AS IS" BASIS,
     12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 // See the License for the specific language governing permissions and
     14 // limitations under the License.
     15 //
     16 
     17 option optimize_for = LITE_RUNTIME;
     18 package tpm_manager;
     19 
     20 import "tpm_manager_status.proto";
     21 
     22 // The messages in this file correspond to the D-Bus interface for accessing
     23 // Tpm backed Nvram.
     24 
     25 // Input for the DefineNvram method.
     26 message DefineNvramRequest {
     27   optional int32 index = 1;
     28   optional int32 length = 2;
     29 }
     30 
     31 // Output for the DefineNvram method.
     32 message DefineNvramReply {
     33   optional TpmManagerStatus status = 1;
     34 }
     35 
     36 // Input for the DestroyNvram method.
     37 message DestroyNvramRequest {
     38   optional int32 index = 1;
     39 }
     40 
     41 // Output for the DestroyNvram method.
     42 message DestroyNvramReply {
     43   optional TpmManagerStatus status = 1;
     44 }
     45 
     46 // Input for the WriteNvram method.
     47 message WriteNvramRequest {
     48   optional int32 index = 1;
     49   optional bytes data = 2;
     50 }
     51 
     52 // Output for the WriteNvram method.
     53 message WriteNvramReply {
     54   optional TpmManagerStatus status = 1;
     55 }
     56 
     57 // Input for the ReadNvram method.
     58 message ReadNvramRequest {
     59   optional int32 index = 1;
     60 }
     61 
     62 // Output for the ReadNvram method.
     63 message ReadNvramReply {
     64   optional TpmManagerStatus status = 1;
     65   optional bytes data = 2;
     66 }
     67 
     68 // Input for the IsNvramDefined method.
     69 message IsNvramDefinedRequest {
     70   optional int32 index = 1;
     71 }
     72 
     73 // Output for the IsNvramDefined method.
     74 message IsNvramDefinedReply {
     75   optional TpmManagerStatus status = 1;
     76   optional bool is_defined = 2;
     77 }
     78 
     79 // Input for the IsNvramLocked method.
     80 message IsNvramLockedRequest {
     81   optional int32 index = 1;
     82 }
     83 
     84 // Output for the IsNvramLocked method.
     85 message IsNvramLockedReply {
     86   optional TpmManagerStatus status = 1;
     87   optional bool is_locked = 2;
     88 }
     89 
     90 // Input for the GetNvramSize method.
     91 message GetNvramSizeRequest {
     92   optional int32 index = 1;
     93 }
     94 
     95 // Output for the GetNvramSize method.
     96 message GetNvramSizeReply {
     97   optional TpmManagerStatus status = 1;
     98   optional int32 size = 2;
     99 }
    100