strongswan.git
8 years agoTemporary commenting out of processing optional PCR Composite field
Sansar Choinyambuu [Mon, 24 Oct 2011 08:38:32 +0000 (10:38 +0200)]
Temporary commenting out of processing optional PCR Composite field

8 years agoUsed Openssl RSA_verify function
Sansar Choinyambuu [Fri, 21 Oct 2011 11:50:28 +0000 (13:50 +0200)]
Used Openssl RSA_verify function

8 years agoFixed calculate quote info function -> initialize PCR bit mask array with zeroes
Sansar Choinyambuu [Fri, 21 Oct 2011 08:43:59 +0000 (10:43 +0200)]
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

8 years agoChanged definition of pcr_value in pcr_entry_t structure
Sansar Choinyambuu [Wed, 19 Oct 2011 11:54:29 +0000 (13:54 +0200)]
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

8 years agoImplemented Quote Digest constructing function for IMV
Sansar Choinyambuu [Fri, 14 Oct 2011 16:19:49 +0000 (18:19 +0200)]
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

8 years agoReplaced with boolean variable for PCR info included and Evidence Signature included...
Sansar Choinyambuu [Fri, 14 Oct 2011 16:18:07 +0000 (18:18 +0200)]
Replaced with boolean variable for PCR info included and Evidence Signature included flags
Write and Read flags to int first and set flags /Due to special definition/

8 years agoLoading AIK Blob from file configured
Sansar Choinyambuu [Wed, 12 Oct 2011 09:42:40 +0000 (11:42 +0200)]
Loading AIK Blob from file configured
Finalized implementation of quote_tpm function

8 years agoGet AIK certificate encoding in PUBKEY_ASN1_DER if it's just public key
Sansar Choinyambuu [Mon, 10 Oct 2011 14:07:18 +0000 (16:07 +0200)]
Get AIK certificate encoding in PUBKEY_ASN1_DER if it's just public key

8 years agoadded the IMV_ATTESTATION_STATE_NONCE_REQ state
Andreas Steffen [Sun, 9 Oct 2011 13:19:03 +0000 (15:19 +0200)]
added the IMV_ATTESTATION_STATE_NONCE_REQ state

8 years agomoved attribute processing to imc_attestation_process
Andreas Steffen [Sun, 9 Oct 2011 08:19:10 +0000 (10:19 +0200)]
moved attribute processing to imc_attestation_process

8 years agomoved attribute processing to imv_attestation_process
Andreas Steffen [Sat, 8 Oct 2011 22:58:33 +0000 (00:58 +0200)]
moved attribute processing to imv_attestation_process

8 years agorefactored DH group nonce exchange
Andreas Steffen [Sat, 8 Oct 2011 20:17:50 +0000 (22:17 +0200)]
refactored DH group nonce exchange

8 years agonormalized pts_dh_group function names
Andreas Steffen [Sat, 8 Oct 2011 12:24:24 +0000 (14:24 +0200)]
normalized pts_dh_group function names

8 years agoadded pts_dh_group_select
Andreas Steffen [Sat, 8 Oct 2011 12:12:14 +0000 (14:12 +0200)]
added pts_dh_group_select

8 years agocombine two algorithm checks
Andreas Steffen [Fri, 7 Oct 2011 19:01:16 +0000 (21:01 +0200)]
combine two algorithm checks

8 years agofixed setting of PTS DH group
Andreas Steffen [Fri, 7 Oct 2011 18:28:29 +0000 (20:28 +0200)]
fixed setting of PTS DH group

8 years agoImproved implementation of Read PCR/ Extend PCR/ Quote_TPM functions
Sansar Choinyambuu [Fri, 7 Oct 2011 13:15:56 +0000 (15:15 +0200)]
Improved implementation of Read PCR/ Extend PCR/ Quote_TPM functions
Implemented creating/handling of Simple Evidence Final attribute (incomplete)

8 years agoChanged definition of output and set them in quote_tpm function
Sansar Choinyambuu [Fri, 7 Oct 2011 09:15:37 +0000 (11:15 +0200)]
Changed definition of output and set them in quote_tpm function

8 years agoImplemented first version of tpm quote function
Sansar Choinyambuu [Fri, 7 Oct 2011 07:13:42 +0000 (09:13 +0200)]
Implemented first version of tpm quote function

8 years agoadded newline at end of file
Andreas Steffen [Fri, 7 Oct 2011 07:12:18 +0000 (09:12 +0200)]
added newline at end of file

8 years agoChanged definition of get_my_pub_val function a little
Sansar Choinyambuu [Wed, 5 Oct 2011 08:52:17 +0000 (10:52 +0200)]
Changed definition of get_my_pub_val function a little

8 years agoImplemented hasndling of Request Functional Component Evidence and creation of Simple...
Sansar Choinyambuu [Fri, 30 Sep 2011 12:57:29 +0000 (14:57 +0200)]
Implemented hasndling of Request Functional Component Evidence and creation of Simple Component Evidences

8 years agoImplemented functions for reading and extending TPM PCR
Sansar Choinyambuu [Fri, 30 Sep 2011 12:56:25 +0000 (14:56 +0200)]
Implemented functions for reading and extending TPM PCR
Made hash_file function a member of pts object

8 years agoUse struct containing the parameters for Create function
Sansar Choinyambuu [Fri, 30 Sep 2011 12:54:39 +0000 (14:54 +0200)]
Use struct containing the parameters for Create function
Deleted unnecessary setter functions

8 years agoFixed memory leaks
Sansar Choinyambuu [Wed, 28 Sep 2011 13:14:02 +0000 (15:14 +0200)]
Fixed memory leaks

8 years agoClone chunk_t parameters in create function
Sansar Choinyambuu [Wed, 28 Sep 2011 13:12:32 +0000 (15:12 +0200)]
Clone chunk_t parameters in create function

8 years agoImplemented handling of DH Parameters Response and Finish attributes
Sansar Choinyambuu [Fri, 23 Sep 2011 14:06:29 +0000 (16:06 +0200)]
Implemented handling of DH Parameters Response and Finish attributes
Implemented calculating session secrets

8 years agoCloning chunk_t parameters in process message
Sansar Choinyambuu [Fri, 23 Sep 2011 14:05:21 +0000 (16:05 +0200)]
Cloning chunk_t parameters in process message

8 years agoStarted implementing handling of DH Nonce attributes
Sansar Choinyambuu [Wed, 21 Sep 2011 14:32:25 +0000 (16:32 +0200)]
Started implementing handling of DH Nonce attributes

8 years agoImplemented Diffie Hellman Nonce attributes
Sansar Choinyambuu [Wed, 21 Sep 2011 08:36:50 +0000 (10:36 +0200)]
Implemented Diffie Hellman Nonce attributes

8 years agoWrite/Read flags field directly to/from variable
Sansar Choinyambuu [Wed, 21 Sep 2011 08:35:10 +0000 (10:35 +0200)]
Write/Read flags field directly to/from variable

8 years agoBegan implementing handline of Functional Component Measuring attributes
Sansar Choinyambuu [Fri, 16 Sep 2011 14:13:50 +0000 (16:13 +0200)]
Began implementing handline of Functional Component Measuring attributes

8 years agoFixed bug at checking error code from file stat
Sansar Choinyambuu [Fri, 16 Sep 2011 09:17:32 +0000 (11:17 +0200)]
Fixed bug at checking error code from file stat

8 years agoImplemented handling of File Metadata
Sansar Choinyambuu [Wed, 14 Sep 2011 13:41:57 +0000 (15:41 +0200)]
Implemented handling of File Metadata

8 years agoFile not Found, Invalid path, Invalid Delimiter PTS errors case checks implemented
Sansar Choinyambuu [Fri, 9 Sep 2011 09:23:19 +0000 (11:23 +0200)]
File not Found, Invalid path, Invalid Delimiter PTS errors case checks implemented

8 years agoFixed bug in construction of PCR_SELECT structure
Sansar Choinyambuu [Fri, 4 Nov 2011 08:57:17 +0000 (09:57 +0100)]
Fixed bug in construction of PCR_SELECT structure

8 years agoDefined functional components within ITA namespace
Sansar Choinyambuu [Wed, 2 Nov 2011 15:38:06 +0000 (16:38 +0100)]
Defined functional components within ITA namespace
Implemented handling of functional components evidence request/response

8 years agoReverse the changes made to openssl plugin for signature verification
Sansar Choinyambuu [Wed, 2 Nov 2011 15:37:09 +0000 (16:37 +0100)]
Reverse the changes made to openssl plugin for signature verification

8 years agoreordered options
Andreas Steffen [Wed, 2 Nov 2011 08:55:26 +0000 (09:55 +0100)]
reordered options

8 years agoReversed unintended commit
Sansar Choinyambuu [Wed, 2 Nov 2011 07:08:06 +0000 (08:08 +0100)]
Reversed unintended commit

8 years agoChanged the static function name in openssl_rsa_public_key object
Sansar Choinyambuu [Wed, 2 Nov 2011 07:05:28 +0000 (08:05 +0100)]
Changed the static function name in openssl_rsa_public_key object
Removed unused chunk variable from PTS verify_quote_signature function

8 years agoimplemented simple delete from database
Andreas Steffen [Mon, 31 Oct 2011 18:50:13 +0000 (19:50 +0100)]
implemented simple delete from database

8 years agoadd product and file entries to database
Andreas Steffen [Mon, 31 Oct 2011 17:34:16 +0000 (18:34 +0100)]
add product and file entries to database

8 years agouse openssl rsa_verify function
Sansar Choinyambuu [Mon, 31 Oct 2011 15:08:31 +0000 (16:08 +0100)]
use openssl rsa_verify function

8 years agoImplemented matching of Optional PCR Composite field value when Hashing was done...
Sansar Choinyambuu [Mon, 31 Oct 2011 10:26:00 +0000 (11:26 +0100)]
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

8 years agoallow file and product selection in hash query
Andreas Steffen [Sun, 30 Oct 2011 22:28:07 +0000 (23:28 +0100)]
allow file and product selection in hash query

8 years agoapplied some database fixes
Andreas Steffen [Sun, 30 Oct 2011 22:09:11 +0000 (23:09 +0100)]
applied some database fixes

8 years agorefactored attest database tool
Andreas Steffen [Sun, 30 Oct 2011 21:20:20 +0000 (22:20 +0100)]
refactored attest database tool

8 years agofixed SQL queries
Andreas Steffen [Sun, 30 Oct 2011 18:13:56 +0000 (19:13 +0100)]
fixed SQL queries

8 years agoget measurement hashes for a given file
Andreas Steffen [Sat, 29 Oct 2011 20:58:32 +0000 (22:58 +0200)]
get measurement hashes for a given file

8 years agoadd directory prefix to file path
Andreas Steffen [Sat, 29 Oct 2011 20:01:08 +0000 (22:01 +0200)]
add directory prefix to file path

8 years agolist file measurement hashes
Andreas Steffen [Sat, 29 Oct 2011 17:33:45 +0000 (19:33 +0200)]
list file measurement hashes

8 years agoremove attest
Andreas Steffen [Fri, 28 Oct 2011 20:53:40 +0000 (22:53 +0200)]
remove attest

8 years agocorrected copyright
Andreas Steffen [Fri, 28 Oct 2011 20:53:08 +0000 (22:53 +0200)]
corrected copyright

8 years agoipsec attest lists data stored in an attestation database
Andreas Steffen [Fri, 28 Oct 2011 20:46:28 +0000 (22:46 +0200)]
ipsec attest lists data stored in an attestation database

8 years agofree memories that are bound to the context
Sansar Choinyambuu [Fri, 28 Oct 2011 14:45:45 +0000 (16:45 +0200)]
free memories that are bound to the context

8 years agoBoth D and T flags required to be set for PTS Component Measurement
Sansar Choinyambuu [Fri, 28 Oct 2011 14:17:27 +0000 (16:17 +0200)]
Both D and T flags required to be set for PTS Component Measurement
DH Finish is sent only when D flag is set in TPM_INIT phase

8 years agouse D flag for PTS Protocol Capabilities
Sansar Choinyambuu [Fri, 28 Oct 2011 13:17:58 +0000 (15:17 +0200)]
use D flag for PTS Protocol Capabilities

8 years agoadded measurements for Ubuntu 11.10 i686
Andreas Steffen [Thu, 27 Oct 2011 22:01:29 +0000 (00:01 +0200)]
added measurements for Ubuntu 11.10 i686

8 years agochanged method name to create_file_meas_enumerator
Andreas Steffen [Thu, 27 Oct 2011 15:52:32 +0000 (17:52 +0200)]
changed method name to create_file_meas_enumerator

8 years agocommitted missing pts_file_type.c
Andreas Steffen [Thu, 27 Oct 2011 12:26:52 +0000 (14:26 +0200)]
committed missing pts_file_type.c

8 years agoadded pts_file_type_names
Andreas Steffen [Thu, 27 Oct 2011 05:55:15 +0000 (07:55 +0200)]
added pts_file_type_names

8 years agoUnix-Style File Metadata returns relative pathnames
Andreas Steffen [Thu, 27 Oct 2011 04:41:09 +0000 (06:41 +0200)]
Unix-Style File Metadata returns relative pathnames

8 years agouse write_uint64 and read_uint64 in file measurements
Andreas Steffen [Thu, 27 Oct 2011 04:29:19 +0000 (06:29 +0200)]
use write_uint64 and read_uint64 in file measurements

8 years agooptimized handling of UNIX file metadata
Andreas Steffen [Wed, 26 Oct 2011 22:39:17 +0000 (00:39 +0200)]
optimized handling of UNIX file metadata

8 years agoextended bio_reader and bio_writer to handle u_int64_t
Andreas Steffen [Wed, 26 Oct 2011 22:37:24 +0000 (00:37 +0200)]
extended bio_reader and bio_writer to handle u_int64_t

8 years agoshortened fieldnames of pts_file_metadata_t struct
Andreas Steffen [Wed, 26 Oct 2011 20:10:24 +0000 (22:10 +0200)]
shortened fieldnames of pts_file_metadata_t struct

8 years agoremoved empty line
Andreas Steffen [Wed, 26 Oct 2011 20:06:46 +0000 (22:06 +0200)]
removed empty line

8 years agocompacted file metadata debug output
Andreas Steffen [Wed, 26 Oct 2011 19:29:15 +0000 (21:29 +0200)]
compacted file metadata debug output

8 years agoCopy just 20 bytes of pcr after value
Sansar Choinyambuu [Mon, 24 Oct 2011 12:11:11 +0000 (14:11 +0200)]
Copy just 20 bytes of pcr after value

8 years agofollow strongswan coding rules
Sansar Choinyambuu [Mon, 24 Oct 2011 11:31:05 +0000 (13:31 +0200)]
follow strongswan coding rules

8 years agoSort the pcr entries list everytime new entry is added
Sansar Choinyambuu [Mon, 24 Oct 2011 10:43:38 +0000 (12:43 +0200)]
Sort the pcr entries list everytime new entry is added

8 years agoModified some unnecessary todo statement
Sansar Choinyambuu [Mon, 24 Oct 2011 09:47:00 +0000 (11:47 +0200)]
Modified some unnecessary todo statement

8 years agoCosmetics
Sansar Choinyambuu [Mon, 24 Oct 2011 09:40:07 +0000 (11:40 +0200)]
Cosmetics

8 years agoDeleted unnecessary debuggin statements for File Metadata on IMC side
Sansar Choinyambuu [Mon, 24 Oct 2011 09:37:22 +0000 (11:37 +0200)]
Deleted unnecessary debuggin statements for File Metadata on IMC side

8 years agoImplemented creating and handling of Optional PCR Composite field in Simple Evidence...
Sansar Choinyambuu [Mon, 24 Oct 2011 09:28:17 +0000 (11:28 +0200)]
Implemented creating and handling of Optional PCR Composite field in Simple Evidence Final attribute

8 years agoConstruct PCR Composite using information received in Simple Component Evidence attri...
Sansar Choinyambuu [Mon, 24 Oct 2011 08:39:17 +0000 (10:39 +0200)]
Construct PCR Composite using information received in Simple Component Evidence attributes

8 years agoTemporary commenting out of processing optional PCR Composite field
Sansar Choinyambuu [Mon, 24 Oct 2011 08:38:32 +0000 (10:38 +0200)]
Temporary commenting out of processing optional PCR Composite field

8 years agoUsed Openssl RSA_verify function
Sansar Choinyambuu [Fri, 21 Oct 2011 11:50:28 +0000 (13:50 +0200)]
Used Openssl RSA_verify function

8 years agoFixed calculate quote info function -> initialize PCR bit mask array with zeroes
Sansar Choinyambuu [Fri, 21 Oct 2011 08:43:59 +0000 (10:43 +0200)]
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

8 years agoIncluded hasher.h
Sansar Choinyambuu [Fri, 21 Oct 2011 08:43:27 +0000 (10:43 +0200)]
Included hasher.h

8 years agofixed typo in reason strings
Sansar Choinyambuu [Wed, 19 Oct 2011 12:20:29 +0000 (14:20 +0200)]
fixed typo in reason strings

8 years agoCheck if matching value configured with the received pcr after value in Simple Compon...
Sansar Choinyambuu [Wed, 19 Oct 2011 11:55:46 +0000 (13:55 +0200)]
Check if matching value configured with the received pcr after value in Simple Component Evidence

8 years agoChanged definition of pcr_value in pcr_entry_t structure
Sansar Choinyambuu [Wed, 19 Oct 2011 11:54:29 +0000 (13:54 +0200)]
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

8 years agodeleted unnecessary debuggin statement
Sansar Choinyambuu [Wed, 19 Oct 2011 09:18:57 +0000 (11:18 +0200)]
deleted unnecessary debuggin statement

8 years agoreturn SHA1 hash of TPM Quote Info in calculate_quote_digest
Sansar Choinyambuu [Wed, 19 Oct 2011 09:17:27 +0000 (11:17 +0200)]
return SHA1 hash of TPM Quote Info in calculate_quote_digest

8 years agoModified reason strings
Sansar Choinyambuu [Wed, 19 Oct 2011 09:15:48 +0000 (11:15 +0200)]
Modified reason strings

8 years agoReplaced static string path with Metadata requests retrieved from pts database
Sansar Choinyambuu [Wed, 19 Oct 2011 07:20:02 +0000 (09:20 +0200)]
Replaced static string path with Metadata requests retrieved from pts database

8 years agoImplemented new create enumerator function to get metadata request paths
Sansar Choinyambuu [Wed, 19 Oct 2011 07:18:58 +0000 (09:18 +0200)]
Implemented new create enumerator function to get metadata request paths
Modified existing file_enumerator function to include just measurement requests

8 years agoAdded measurement and metadata columns to files table
Sansar Choinyambuu [Wed, 19 Oct 2011 07:17:29 +0000 (09:17 +0200)]
Added measurement and metadata columns to files table
Added "/etc/tnc_config" file record for metadata request
Modified files table entries with measurement flag set

8 years agoImplemented Quote Digest constructing function for IMV
Sansar Choinyambuu [Fri, 14 Oct 2011 16:19:49 +0000 (18:19 +0200)]
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

8 years agoReplaced with boolean variable for PCR info included and Evidence Signature included...
Sansar Choinyambuu [Fri, 14 Oct 2011 16:18:07 +0000 (18:18 +0200)]
Replaced with boolean variable for PCR info included and Evidence Signature included flags
Write and Read flags to int first and set flags /Due to special definition/

8 years agoLoading AIK Blob from file configured
Sansar Choinyambuu [Wed, 12 Oct 2011 09:42:40 +0000 (11:42 +0200)]
Loading AIK Blob from file configured
Finalized implementation of quote_tpm function

8 years agoGet AIK certificate encoding in PUBKEY_ASN1_DER if it's just public key
Sansar Choinyambuu [Mon, 10 Oct 2011 14:07:18 +0000 (16:07 +0200)]
Get AIK certificate encoding in PUBKEY_ASN1_DER if it's just public key

8 years agoAdded parentesis for logical conditions of IF statement to get rid of the warning
Sansar Choinyambuu [Mon, 10 Oct 2011 09:52:36 +0000 (11:52 +0200)]
Added parentesis for logical conditions of IF statement to get rid of the warning

8 years agoadded pts_dh_group_error_create() and pts_dh_nonce_error_create()
Andreas Steffen [Sun, 9 Oct 2011 20:30:55 +0000 (22:30 +0200)]
added pts_dh_group_error_create() and pts_dh_nonce_error_create()

8 years agomoved building of attributes to imv_attestation_build
Andreas Steffen [Sun, 9 Oct 2011 17:37:48 +0000 (19:37 +0200)]
moved building of attributes to imv_attestation_build

8 years agocosmetics
Andreas Steffen [Sun, 9 Oct 2011 13:58:37 +0000 (15:58 +0200)]
cosmetics

8 years agomoved comments
Andreas Steffen [Sun, 9 Oct 2011 13:39:25 +0000 (15:39 +0200)]
moved comments

8 years agoadded the IMV_ATTESTATION_STATE_NONCE_REQ state
Andreas Steffen [Sun, 9 Oct 2011 13:19:03 +0000 (15:19 +0200)]
added the IMV_ATTESTATION_STATE_NONCE_REQ state