Commit Graph

68 Commits

Author SHA1 Message Date
Andreas Steffen 3186b04c0b fixed some more memory leaks 2011-11-28 21:22:51 +01:00
Andreas Steffen b2485f321d fixed memory leaks 2011-11-28 21:22:51 +01:00
Andreas Steffen 19c956b602 refactored PCR functionality 2011-11-28 21:22:02 +01:00
Sansar Choinyambuu f6aab3cd1e Implemented TPM_Quote2 on imc and constructing TPM_Quote_Info2 on imv 2011-11-28 21:20:23 +01:00
Sansar Choinyambuu 2e84538299 Defined functional components within ITA namespace
Implemented handling of functional components evidence request/response
2011-11-28 21:19:42 +01:00
Sansar Choinyambuu 824ace105a Changed the static function name in openssl_rsa_public_key object
Removed unused chunk variable from PTS verify_quote_signature function
2011-11-28 21:17:16 +01:00
Sansar Choinyambuu 5fbbfe0a48 use openssl rsa_verify function 2011-11-28 20:31:13 +01:00
Sansar Choinyambuu 379f7a7533 Implemented matching of Optional PCR Composite field value when Hashing was done to reduce the size of it
Optional Composite Hash Algorithm field is always present, has value of all zeroes if was not used
2011-11-28 19:51:58 +01:00
Sansar Choinyambuu 898c3f995f follow strongswan coding rules 2011-11-28 19:24:40 +01:00
Sansar Choinyambuu 06d3485c46 Sort the pcr entries list everytime new entry is added 2011-11-28 19:19:11 +01:00
Sansar Choinyambuu e0fa29c9a1 Implemented creating and handling of Optional PCR Composite field in Simple Evidence Final attribute 2011-11-28 19:18:23 +01:00
Sansar Choinyambuu f0a5e5bdac Construct PCR Composite using information received in Simple Component Evidence attributes 2011-11-28 19:15:13 +01:00
Sansar Choinyambuu 60bcdb7452 Used Openssl RSA_verify function 2011-11-28 19:11:47 +01:00
Sansar Choinyambuu 97280c7a47 Fixed calculate quote info function -> initialize PCR bit mask array with zeroes
Return TPM Quote Info only, hash of it is calculated in IMV Process
Renamed digest with quote info
2011-11-28 19:10:24 +01:00
Sansar Choinyambuu db15e3a0d9 Changed definition of pcr_value in pcr_entry_t structure
Implemented function to check if recevied PCR after value matches with any configured pcr value
2011-11-28 19:06:35 +01:00
Sansar Choinyambuu 54c0e80f92 Implemented Quote Digest constructing function for IMV
Implemented Signature verification function to check TPM Quote Signature
Implemented Handling of Simple Evidence Final attribute
Fixed bug within tpm_quote function
2011-11-28 18:51:08 +01:00
Sansar Choinyambuu e8181d7077 Loading AIK Blob from file configured
Finalized implementation of quote_tpm function
2011-11-28 18:46:14 +01:00
Sansar Choinyambuu bae9346a29 Get AIK certificate encoding in PUBKEY_ASN1_DER if it's just public key 2011-11-28 18:44:44 +01:00
Sansar Choinyambuu 0788198047 Improved implementation of Read PCR/ Extend PCR/ Quote_TPM functions
Implemented creating/handling of Simple Evidence Final attribute (incomplete)
2011-11-28 17:53:34 +01:00
Sansar Choinyambuu b9d6aded18 Fixed memory leaks 2011-11-28 17:19:40 +01:00
Sansar Choinyambuu 75d5f6d132 Fixed bug at checking error code from file stat 2011-11-28 15:02:49 +01:00
Sansar Choinyambuu 1e28c937fe Fixed bug in construction of PCR_SELECT structure 2011-11-28 14:39:53 +01:00
Sansar Choinyambuu 2aa28b164e Defined functional components within ITA namespace
Implemented handling of functional components evidence request/response
2011-11-28 14:39:53 +01:00
Sansar Choinyambuu 71741df078 Changed the static function name in openssl_rsa_public_key object
Removed unused chunk variable from PTS verify_quote_signature function
2011-11-28 14:39:53 +01:00
Sansar Choinyambuu 3cd6077b75 use openssl rsa_verify function 2011-11-28 14:39:53 +01:00
Sansar Choinyambuu cb66320fee Implemented matching of Optional PCR Composite field value when Hashing was done to reduce the size of it
Optional Composite Hash Algorithm field is always present, has value of all zeroes if was not used
2011-11-28 14:39:53 +01:00
Sansar Choinyambuu 8209ab86a5 free memories that are bound to the context 2011-11-28 14:39:52 +01:00
Sansar Choinyambuu 6c5c5b6a2e use D flag for PTS Protocol Capabilities 2011-11-28 14:39:52 +01:00
Andreas Steffen 96d611f585 Unix-Style File Metadata returns relative pathnames 2011-11-28 14:39:52 +01:00
Andreas Steffen 63ca82e56d optimized handling of UNIX file metadata 2011-11-28 14:39:52 +01:00
Andreas Steffen 8ddf76dd13 shortened fieldnames of pts_file_metadata_t struct 2011-11-28 14:39:52 +01:00
Sansar Choinyambuu b8017b5eba follow strongswan coding rules 2011-11-28 14:39:52 +01:00
Sansar Choinyambuu 954be9f5e4 Sort the pcr entries list everytime new entry is added 2011-11-28 14:39:52 +01:00
Sansar Choinyambuu e2d26e47e9 Deleted unnecessary debuggin statements for File Metadata on IMC side 2011-11-28 14:39:51 +01:00
Sansar Choinyambuu 7fa72be3f2 Implemented creating and handling of Optional PCR Composite field in Simple Evidence Final attribute 2011-11-28 14:39:51 +01:00
Sansar Choinyambuu d6fc5bace3 Construct PCR Composite using information received in Simple Component Evidence attributes 2011-11-28 14:39:51 +01:00
Sansar Choinyambuu 52ae3f27f8 Used Openssl RSA_verify function 2011-11-28 14:39:51 +01:00
Sansar Choinyambuu 72684a710b Fixed calculate quote info function -> initialize PCR bit mask array with zeroes
Return TPM Quote Info only, hash of it is calculated in IMV Process
Renamed digest with quote info
2011-11-28 14:39:51 +01:00
Sansar Choinyambuu 26b657ce2b Changed definition of pcr_value in pcr_entry_t structure
Implemented function to check if recevied PCR after value matches with any configured pcr value
2011-11-28 14:39:51 +01:00
Sansar Choinyambuu 2eb3dc40b9 return SHA1 hash of TPM Quote Info in calculate_quote_digest 2011-11-28 14:39:51 +01:00
Sansar Choinyambuu a8be826be4 Implemented Quote Digest constructing function for IMV
Implemented Signature verification function to check TPM Quote Signature
Implemented Handling of Simple Evidence Final attribute
Fixed bug within tpm_quote function
2011-11-28 14:39:50 +01:00
Sansar Choinyambuu d25b7b3d9a Loading AIK Blob from file configured
Finalized implementation of quote_tpm function
2011-11-28 14:39:50 +01:00
Sansar Choinyambuu fe247ba2a6 Get AIK certificate encoding in PUBKEY_ASN1_DER if it's just public key 2011-11-28 14:39:50 +01:00
Andreas Steffen cc1406d6fa refactored DH group nonce exchange 2011-11-28 14:39:50 +01:00
Andreas Steffen 02855188ef fixed setting of PTS DH group 2011-11-28 14:39:49 +01:00
Sansar Choinyambuu ea195cb6ef Changed encoding type to ASN.1 DER 2011-11-28 14:34:21 +01:00
Sansar Choinyambuu 924f3bf59e Improved implementation of Read PCR/ Extend PCR/ Quote_TPM functions
Implemented creating/handling of Simple Evidence Final attribute (incomplete)
2011-11-28 14:34:21 +01:00
Sansar Choinyambuu a3be32a2d5 Changed definition of output and set them in quote_tpm function 2011-11-28 14:34:21 +01:00
Sansar Choinyambuu b46930bf5f Implemented first version of tpm quote function 2011-11-28 14:34:21 +01:00
Sansar Choinyambuu 4b3d992d08 Changed definition of get_my_pub_val function a little 2011-11-28 14:34:21 +01:00