summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShivaprasad Hongal <shongal@codeaurora.org>2018-07-23 12:38:03 -0700
committerdianlujitao <dianlujitao@lineageos.org>2020-01-02 17:12:08 +0200
commit92434641b8a36c416f3b58241e8c1d9b071981a5 (patch)
tree2402343cc9448d0c32265f18a5bf2af521d82d4d
parenta1b45b72ae679766173c85781377c90f05ba10fc (diff)
downloadandroid_hardware_interfaces-92434641b8a36c416f3b58241e8c1d9b071981a5.tar.gz
android_hardware_interfaces-92434641b8a36c416f3b58241e8c1d9b071981a5.tar.bz2
android_hardware_interfaces-92434641b8a36c416f3b58241e8c1d9b071981a5.zip
keymasterV4_0: Tags support for FBE wrapped key.staging/lineage-17.0_merge-android-10.0.0_r9
Define two new tags for FBE Key Management. FBE_ICE: This is a boolean which specifies if new key management is used. KEY_TYPE: Specifies if it is a DE_USER or a CE_USER key. CRs-Fixed: 2288316 Change-Id: Id9468d1fab0b0517a0a96734cdfe5612855fd2d9
-rw-r--r--keymaster/4.0/support/include/keymasterV4_0/keymaster_tags.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/keymaster/4.0/support/include/keymasterV4_0/keymaster_tags.h b/keymaster/4.0/support/include/keymasterV4_0/keymaster_tags.h
index 97dab6821..6b02a7fff 100644
--- a/keymaster/4.0/support/include/keymasterV4_0/keymaster_tags.h
+++ b/keymaster/4.0/support/include/keymasterV4_0/keymaster_tags.h
@@ -73,6 +73,9 @@ namespace V4_0 {
static const int32_t KM_TAG_DIGEST_OLD = static_cast<int32_t>(TagType::ENUM) | 5;
static const int32_t KM_TAG_PADDING_OLD = static_cast<int32_t>(TagType::ENUM) | 7;
+static const int32_t KM_TAG_FBE_ICE = static_cast<int32_t>(TagType::BOOL) | 16201;
+static const int32_t KM_TAG_KEY_TYPE = static_cast<int32_t>(TagType::UINT) | 16202;
+
constexpr TagType typeFromTag(Tag tag) {
return static_cast<TagType>(static_cast<uint32_t>(tag) & static_cast<uint32_t>(0xf0000000));
}