Add KeyMint MODULE_HASH tag and err codes
Bug: 369375199
Test: build, TreeHugger
Change-Id: I56ef804d6e8fbbd98975b87ac6f09071aeb13bcf
diff --git a/include_all/hardware/keymaster_defs.h b/include_all/hardware/keymaster_defs.h
index dd286d6..6f9f7bf 100644
--- a/include_all/hardware/keymaster_defs.h
+++ b/include_all/hardware/keymaster_defs.h
@@ -177,6 +177,8 @@
KM_TAG_STORAGE_KEY = KM_BOOL | 722, /* storage encryption key */
KM_TAG_ATTESTATION_ID_SECOND_IMEI = KM_BYTES | 723, /* Used to provide the device's second
IMEI to be included in attestation */
+ KM_TAG_MODULE_HASH = KM_BYTES | 724, /* Used to record the hash of apex module
+ information to be included in attestation */
/* Tags used only to provide data to or receive data from operations */
KM_TAG_ASSOCIATED_DATA = KM_BYTES | 1000, /* Used to provide associated data for AEAD modes. */
@@ -516,6 +518,8 @@
KM_ERROR_MISSING_ISSUER_SUBJECT = -82,
KM_ERROR_INVALID_ISSUER_SUBJECT = -83,
KM_ERROR_BOOT_LEVEL_EXCEEDED = -84,
+ KM_ERROR_HARDWARE_NOT_YET_AVAILABLE = -85,
+ KM_ERROR_MODULE_HASH_ALREADY_SET = -86,
KM_ERROR_UNIMPLEMENTED = -100,
KM_ERROR_VERSION_MISMATCH = -101,