summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Qi Wu <siofive@google.com> 2021-01-16 23:39:48 +0800
committer Janis Danisevskis <jdanis@google.com> 2021-02-02 09:23:33 -0800
commit0538ddc49b10c5d2ecdf7ce8542d2928bb4aea12 (patch)
tree43b2f6bf03ba99a35235a3a245b5ad35b7f61e1e
parent87eb2c419ef230366ccbdbe980c4f49b7a70f372 (diff)
Limited use key: feature files
Add files for limited use key feature. So that the app developer can know whether KeyMint cannot enforce this feature in hardware, can only enforce when count == 1 or can enforce with any number of count(>=1). Bug: b/174140443 Test: compile Change-Id: I33349c4f968fa7b16055acd3db2e0cb80c0c5df1
-rw-r--r--data/etc/android.hardware.keystore.limited_use_key.xml21
-rw-r--r--data/etc/android.hardware.keystore.single_use_key.xml21
2 files changed, 42 insertions, 0 deletions
diff --git a/data/etc/android.hardware.keystore.limited_use_key.xml b/data/etc/android.hardware.keystore.limited_use_key.xml
new file mode 100644
index 0000000000..5217086715
--- /dev/null
+++ b/data/etc/android.hardware.keystore.limited_use_key.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2021 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- Feature for devices with KeyMint that can enforce limited use key
+ in hardware with any max usage count (including count equals to 1). -->
+<permissions>
+ <feature name="android.hardware.keystore.limited_use_key" />
+</permissions> \ No newline at end of file
diff --git a/data/etc/android.hardware.keystore.single_use_key.xml b/data/etc/android.hardware.keystore.single_use_key.xml
new file mode 100644
index 0000000000..40e80aaa9b
--- /dev/null
+++ b/data/etc/android.hardware.keystore.single_use_key.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2021 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- Feature for devices with KeyMint that only can enforce limited use key
+ in hardware with max usage count equals to 1. -->
+<permissions>
+ <feature name="android.hardware.keystore.single_use_key" />
+</permissions> \ No newline at end of file