From f883b988e7fa3b750c5a4b0ed8b53ce999ca3842 Mon Sep 17 00:00:00 2001 From: Chad Brubaker Date: Fri, 13 Feb 2015 13:58:36 -0800 Subject: [PATCH] Add explicit values to keymaster_key_format_t Change-Id: I4113286396b16ca687fbd8bc38b2f16063fc1024 --- include/hardware/keymaster_defs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/hardware/keymaster_defs.h b/include/hardware/keymaster_defs.h index 46490554..770c66e8 100644 --- a/include/hardware/keymaster_defs.h +++ b/include/hardware/keymaster_defs.h @@ -356,10 +356,10 @@ typedef struct { * In the future this list will expand greatly to accommodate asymmetric key import/export. */ typedef enum { - KM_KEY_FORMAT_X509, /* for public key export, required */ - KM_KEY_FORMAT_PKCS8, /* for asymmetric key pair import, required */ - KM_KEY_FORMAT_PKCS12, /* for asymmetric key pair import, not required */ - KM_KEY_FORMAT_RAW, /* for symmetric key import, required */ + KM_KEY_FORMAT_X509 = 0, /* for public key export, required */ + KM_KEY_FORMAT_PKCS8 = 1, /* for asymmetric key pair import, required */ + KM_KEY_FORMAT_PKCS12 = 2, /* for asymmetric key pair import, not required */ + KM_KEY_FORMAT_RAW = 3, /* for symmetric key import, required */ } keymaster_key_format_t; /**