aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/charon-tkm/src/tkm/tkm_types.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/charon-tkm/src/tkm/tkm_types.h b/src/charon-tkm/src/tkm/tkm_types.h
index 28c4d9948..96a3bb273 100644
--- a/src/charon-tkm/src/tkm/tkm_types.h
+++ b/src/charon-tkm/src/tkm/tkm_types.h
@@ -74,6 +74,7 @@ typedef struct isa_info_t isa_info_t;
/**
* IKE SA info data structure.
+ *
* This type is used to transfer ISA information from the keymat of the parent
* SA to the keymat of the new IKE SA. For this purpose the skd data chunk is
* (ab)used. This is possible since the sk_d chunk is treated as an opaque value
@@ -94,4 +95,29 @@ struct isa_info_t {
};
+typedef struct sign_info_t sign_info_t;
+
+/**
+ * AUTH signature info data structure.
+ *
+ * This type is used to transfer an ISA context id and the initial message
+ * from the keymat to the TKM private key sign operation. For this purpose the
+ * auth octets chunk is (ab)used and the data is stored in this chunk.
+ * This is possible since the auth octets are treated as opaque value and handed
+ * to the private key sign function as-is without any processing.
+ */
+struct sign_info_t {
+
+ /**
+ * ISA context id.
+ */
+ isa_id_type isa_id;
+
+ /**
+ * Init message.
+ */
+ chunk_t init_message;
+
+};
+
#endif /** TKM_TYPES_H_ */