diff options
author | Matthew Maurer <mmaurer@google.com> | 2019-12-10 06:58:19 -0800 |
---|---|---|
committer | Shawn Willden <swillden@google.com> | 2020-01-20 21:11:01 -0700 |
commit | df2f2301a30e236853a69d34ff4082f9e19ab7e2 (patch) | |
tree | 5911209a2d1b200b5bf66534637fde0887809ab5 | |
parent | 719098311755135f9959aab5277437762b8d461b (diff) | |
download | libhardware-df2f2301a30e236853a69d34ff4082f9e19ab7e2.tar.gz |
Add ROLLBACK_RESISTANCE definition to for KM4
* Add ROLLBACK_RESISTANCE tag
* Add ROLLBACK_RESISTANCE_UNAVAILABLE error code
Test: m libkeymaster_messages
Change-Id: Ib69a0c0f179f894b488da8608e6005e68450453a
-rw-r--r-- | include/hardware/keymaster_defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h index eca484cd..d92ce007 100644 --- a/include/hardware/keymaster_defs.h +++ b/include/hardware/keymaster_defs.h @@ -75,6 +75,8 @@ typedef enum { /* Other hardware-enforced. */ KM_TAG_BLOB_USAGE_REQUIREMENTS = KM_ENUM | 301, /* keymaster_key_blob_usage_requirements_t */ KM_TAG_BOOTLOADER_ONLY = KM_BOOL | 302, /* Usable only by bootloader */ + KM_TAG_ROLLBACK_RESISTANCE = KM_BOOL | 303, /* Hardware enforced deletion with deleteKey + * or deleteAllKeys is supported */ /* * Tags that should be semantically enforced by hardware if possible and will otherwise be @@ -456,6 +458,7 @@ typedef enum { KM_ERROR_KEYMASTER_NOT_CONFIGURED = -64, KM_ERROR_ATTESTATION_APPLICATION_ID_MISSING = -65, KM_ERROR_CANNOT_ATTEST_IDS = -66, + KM_ERROR_ROLLBACK_RESISTANCE_UNAVAILABLE = -67, KM_ERROR_NO_USER_CONFIRMATION = -71, KM_ERROR_DEVICE_LOCKED = -72, |