From a2f97ff8607912a0955f48322153b8d20c551b66 Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Tue, 16 Oct 2012 16:39:54 +0200 Subject: [PATCH] Add AUTH signature info data structure The sign_info_t type is used to transfer an ISA context id and the initial message from the keymat to the TKM private key sign operation. --- src/charon-tkm/src/tkm/tkm_types.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/charon-tkm/src/tkm/tkm_types.h b/src/charon-tkm/src/tkm/tkm_types.h index 28c4d99..96a3bb2 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_ */ -- 2.7.4