summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQi Wu <siofive@google.com>2021-01-05 20:14:56 +0800
committerQi Wu <siofive@google.com>2021-01-13 22:37:19 +0800
commitba765a66c1a2e1d08a6bbbc7d847a175c1ad9fa4 (patch)
tree00096765946aeeed1b8e625b5f50aea7cd4b3c2b
parent29ae34bcde8608bd3c7e572f0c1cd9f678fb0df9 (diff)
downloadlibhardware-ba765a66c1a2e1d08a6bbbc7d847a175c1ad9fa4.tar.gz
Add limited use key tag defination.
Test: none Change-Id: I5464f6411b8bce94a3736cd033d064e75d313fe1
-rw-r--r--include/hardware/keymaster_defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h
index f2deb72a..ab614d5b 100644
--- a/include/hardware/keymaster_defs.h
+++ b/include/hardware/keymaster_defs.h
@@ -95,6 +95,8 @@ typedef enum {
cryptographic operations with the key. */
KM_TAG_MAX_USES_PER_BOOT = KM_UINT | 404, /* Number of times the key can be used per
boot. */
+ KM_TAG_USAGE_COUNT_LIMIT = KM_UINT | 405, /* Number of cryptographic operations left
+ with the key.*/
/* User authentication */
KM_TAG_ALL_USERS = KM_BOOL | 500, /* Reserved for future use -- ignore */