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.
This commit is contained in:
committed by
Tobias Brunner
parent
ac90fcee2f
commit
a2f97ff860
@@ -74,6 +74,7 @@ typedef struct isa_info_t isa_info_t;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* IKE SA info data structure.
|
* IKE SA info data structure.
|
||||||
|
*
|
||||||
* This type is used to transfer ISA information from the keymat of the parent
|
* 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
|
* 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
|
* (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_ */
|
#endif /** TKM_TYPES_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user