summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/interface/keymaster/keymaster.h1
-rw-r--r--include/trusty/keymaster.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/include/interface/keymaster/keymaster.h b/include/interface/keymaster/keymaster.h
index fa60a1aeb59..7b18a64f365 100644
--- a/include/interface/keymaster/keymaster.h
+++ b/include/interface/keymaster/keymaster.h
@@ -61,6 +61,7 @@ enum keymaster_command {
KM_ATAP_SET_CA_RESPONSE_BEGIN = (0x5000 << KEYMASTER_REQ_SHIFT),
KM_ATAP_SET_CA_RESPONSE_UPDATE = (0x6000 << KEYMASTER_REQ_SHIFT),
KM_ATAP_SET_CA_RESPONSE_FINISH = (0x7000 << KEYMASTER_REQ_SHIFT),
+ KM_ATAP_READ_UUID = (0x8000 << KEYMASTER_REQ_SHIFT),
};
typedef enum {
diff --git a/include/trusty/keymaster.h b/include/trusty/keymaster.h
index e69527e0fa9..beb2ff9578f 100644
--- a/include/trusty/keymaster.h
+++ b/include/trusty/keymaster.h
@@ -108,4 +108,13 @@ int trusty_atap_get_ca_request(const uint8_t *operation_start,
int trusty_atap_set_ca_response(const uint8_t *ca_response,
uint32_t ca_response_size);
+/*
+* Reads the UUID from the certificate of the last provisioned attestation
+* credentials as a c-string into |*uuid_p|. Caller takes ownership of
+* |*uuid_p|. Returns one of trusty_err.
+*
+* @uuid_p: location of newly allocated UUID c-string
+*/
+int trusty_atap_read_uuid_str(char **uuid_p);
+
#endif /* TRUSTY_KEYMASTER_H_ */