summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShawn Willden <swillden@google.com>2015-04-10 14:19:38 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-10 14:19:38 +0000
commit0acfbbeb53bb7222609ee769f815d81a94635a55 (patch)
treef46162af53107d59ccae54779274ace82f927395 /include
parente006d2ad901b7eac7c0906d252a6788c150c0437 (diff)
parent94269ea08086df37d4a358a802c292742cb75850 (diff)
downloadhardware_libhardware-0acfbbeb53bb7222609ee769f815d81a94635a55.zip
hardware_libhardware-0acfbbeb53bb7222609ee769f815d81a94635a55.tar.gz
hardware_libhardware-0acfbbeb53bb7222609ee769f815d81a94635a55.tar.bz2
am 94269ea0: am 6950fae4: Merge "Simplify keymaster_key_origin_t."
* commit '94269ea08086df37d4a358a802c292742cb75850': Simplify keymaster_key_origin_t.
Diffstat (limited to 'include')
-rw-r--r--include/hardware/keymaster_defs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h
index 31a487e..7c2d28d 100644
--- a/include/hardware/keymaster_defs.h
+++ b/include/hardware/keymaster_defs.h
@@ -199,12 +199,13 @@ typedef enum {
} keymaster_digest_t;
/**
- * The origin of a key (or pair), i.e. where it was generated. Origin and can be used together to
- * determine whether a key may have existed outside of secure hardware. This type is new in 0_4.
+ * The origin of a key (or pair), i.e. where it was generated. Note that KM_TAG_ORIGIN can be found
+ * in either the hardware-enforced or software-enforced list for a key, indicating whether the key
+ * is hardware or software-based. Specifically, a key with KM_ORIGIN_GENERATED in the
+ * hardware-enforced list is guaranteed never to have existed outide the secure hardware.
*/
typedef enum {
- KM_ORIGIN_HARDWARE = 0, /* Generated in secure hardware */
- KM_ORIGIN_SOFTWARE = 1, /* Generated in non-secure software */
+ KM_ORIGIN_GENERATED = 0, /* Generated in keymaster */
KM_ORIGIN_IMPORTED = 2, /* Imported, origin unknown */
} keymaster_key_origin_t;