summaryrefslogtreecommitdiff
path: root/include/trusty/keymaster.h
diff options
context:
space:
mode:
authorYu Shan <shanyu@google.com>2018-08-15 12:07:20 -0700
committerfaqiang.zhu <faqiang.zhu@nxp.com>2018-11-12 09:18:36 +0800
commit9e3b88f8c0809f3e6a3257ff40b7b57ad6bf6965 (patch)
treedbccbf48ced453f16316299d5e5750405fc4fca0 /include/trusty/keymaster.h
parent5e7a5994395140acb9c3847548b3cc1d8b910fdb (diff)
Add trusty call to set product id.
Test: Modify imx7d bootloader in b/1074236 and test with new keymaster app. Bug: 77873456 Change-Id: I0083630fa44c2c9fd0cabba7e7c1553488579d4e
Diffstat (limited to 'include/trusty/keymaster.h')
-rw-r--r--include/trusty/keymaster.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/trusty/keymaster.h b/include/trusty/keymaster.h
index beb2ff9578..eadb0d1319 100644
--- a/include/trusty/keymaster.h
+++ b/include/trusty/keymaster.h
@@ -117,4 +117,14 @@ int trusty_atap_set_ca_response(const uint8_t *ca_response,
*/
int trusty_atap_read_uuid_str(char **uuid_p);
+/*
+ * SetProductId is only called once to set the secure product id. Caller should
+ * read the product id from permanent attributes structure and set the product
+ * id while fusing the permanent attributes.
+ *
+ * @product_id: The product id to be set.
+ * @size: The size of the product id.
+ */
+int trusty_set_product_id(const uint8_t *product_id, uint32_t size);
+
#endif /* TRUSTY_KEYMASTER_H_ */