Implemented handling of DH Parameters Response and Finish attributes

Implemented calculating session secrets
This commit is contained in:
Sansar Choinyambuu
2011-11-28 16:05:19 +01:00
committed by Andreas Steffen
parent e3cbd18892
commit be922d56b2
3 changed files with 58 additions and 0 deletions
@@ -67,6 +67,12 @@ static linked_list_t *evidences = NULL;
*/
static pts_dh_group_t supported_dh_groups = 0;
/**
* High Entropy Random Data
* used in calculation of shared secret for the assessment session
*/
static chunk_t responder_nonce;
/**
* see section 3.7.1 of TCG TNC IF-IMC Specification 1.2
*/
@@ -62,6 +62,12 @@ static pts_dh_group_t supported_dh_groups = PTS_DH_GROUP_NONE;
*/
static pts_dh_group_t supported_dh_groups = 0;
/**
* High Entropy Random Data
* used in calculation of shared secret for the assessment session
*/
static chunk_t initiator_nonce;
/**
* PTS file measurement database
*/
@@ -77,6 +83,11 @@ static pts_creds_t *pts_creds;
*/
static credential_manager_t *pts_credmgr;
/**
* TRUE if DH Nonce Parameters Request attribute is sent
*/
static bool dh_nonce_req_sent = FALSE;
/**
* see section 3.7.1 of TCG TNC IF-IMV Specification 1.2
*/
@@ -474,6 +485,7 @@ TNC_Result TNC_IMV_Terminate(TNC_IMVID imv_id)
}
DESTROY_IF(pts_db);
DESTROY_IF(pts_credmgr);
free(initiator_nonce.ptr);
libpts_deinit();