summaryrefslogtreecommitdiff
path: root/ta/pkcs11/include
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2020-04-21 13:41:49 +0200
committerJérôme Forissier <jerome@forissier.org>2020-07-14 18:42:38 +0200
commitc4524bfd6198bbb5b1ad078c6f33e9dbbe09390f (patch)
tree35c63863704330cd6404bd6de7c22f504a4a4cc5 /ta/pkcs11/include
parent30137c7390032ab5418087005096b7860efedba6 (diff)
ta: pkcs11: define TA commands for object creation/destruction
Add commands PKCS11_CMD_IMPORT_OBJECT and PKCS11_CMD_DESTROY_OBJECT in enum pkcs11_ta_cmd. Reviewed-by: Ricardo Salveti <ricardo@foundries.io> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'ta/pkcs11/include')
-rw-r--r--ta/pkcs11/include/pkcs11_ta.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/ta/pkcs11/include/pkcs11_ta.h b/ta/pkcs11/include/pkcs11_ta.h
index db10317e..6aebcaac 100644
--- a/ta/pkcs11/include/pkcs11_ta.h
+++ b/ta/pkcs11/include/pkcs11_ta.h
@@ -249,6 +249,35 @@ enum pkcs11_ta_cmd {
* This command relates to the PKCS#11 API function C_Logout().
*/
PKCS11_CMD_LOGOUT = 14,
+
+ /*
+ * PKCS11_CMD_CREATE_OBJECT - Create a raw client assembled object in
+ * the session or token
+ *
+ *
+ * [in] memref[0] = [
+ * 32bit session handle,
+ * (struct pkcs11_object_head)attribs + attributes data
+ * ]
+ * [out] memref[0] = 32bit return code, enum pkcs11_rc
+ * [out] memref[2] = 32bit object handle
+ *
+ * This command relates to the PKCS#11 API function C_CreateObject().
+ */
+ PKCS11_CMD_CREATE_OBJECT = 15,
+
+ /*
+ * PKCS11_CMD_DESTROY_OBJECT - Destroy an object
+ *
+ * [in] memref[0] = [
+ * 32bit session handle,
+ * 32bit object handle
+ * ]
+ * [out] memref[0] = 32bit return code, enum pkcs11_rc
+ *
+ * This command relates to the PKCS#11 API function C_DestroyObject().
+ */
+ PKCS11_CMD_DESTROY_OBJECT = 16,
};
/*