nagendra modadugu | bdcfaa8 | 2017-09-17 17:11:36 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | syntax = "proto3"; |
| 18 | |
| 19 | package nugget.app.keymaster; |
| 20 | |
Andrew Scull | b5f24a5 | 2017-10-13 19:46:40 +0100 | [diff] [blame^] | 21 | message 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 | |
| 30 | message KeyParameters { |
| 31 | repeated KeyParameter params = 1; |
| 32 | } |
| 33 | |
| 34 | message KeyBlob { |
| 35 | bytes blob = 1; |
| 36 | } |
| 37 | |
| 38 | message OperationHandle { |
| 39 | uint64 handle = 1; |
| 40 | } |
| 41 | |
| 42 | message Certificate { |
| 43 | bytes data = 1; |
| 44 | } |
| 45 | |
| 46 | message CertificateChain { |
| 47 | repeated Certificate certificates = 1; |
| 48 | } |
| 49 | |
| 50 | message KeyCharacteristics { |
| 51 | KeyParameters tee_enforced = 1; |
| 52 | } |