blob: c8e845f8bcef1e0d8f8c13ea9e6185037eaec3e2 [file] [log] [blame]
nagendra modadugubdcfaa82017-09-17 17:11:36 -07001/*
2 * Copyright (C) 2017 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
17syntax = "proto3";
18
19package nugget.app.keymaster;
20
Andrew Scullb5f24a52017-10-13 19:46:40 +010021message KeyParameter {
22 uint32 tag = 1; /* Possible values defined here
23 * ::android::hardware::keymaster::V3_0::Tag
24 */
25 uint32 integer = 2;
26 uint64 long_integer = 3;
27 bytes blob = 4;
28}
29
30message KeyParameters {
31 repeated KeyParameter params = 1;
32}
33
34message KeyBlob {
35 bytes blob = 1;
36}
37
38message OperationHandle {
39 uint64 handle = 1;
40}
41
42message Certificate {
43 bytes data = 1;
44}
45
46message CertificateChain {
47 repeated Certificate certificates = 1;
48}
49
50message KeyCharacteristics {
51 KeyParameters tee_enforced = 1;
52}