Sansar Choinyambuu
f39197dd92
Implemented functions for reading and extending TPM PCR
...
Made hash_file function a member of pts object
2011-11-28 14:34:21 +01:00
Sansar Choinyambuu
7c7034f64c
Use struct containing the parameters for Create function
...
Deleted unnecessary setter functions
2011-11-28 14:34:21 +01:00
Sansar Choinyambuu
97ebeaa45c
Fixed memory leaks
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
2f229f10b1
Clone chunk_t parameters in create function
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
c10867f40b
Implemented handling of DH Parameters Response and Finish attributes
...
Implemented calculating session secrets
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
a2ca89676b
Replaced DH_NONCE state with TPM_INIT state
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
808017f6b7
Cloning chunk_t parameters in process message
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
f27c30329d
Fixed bug for updating supported diffie hellman groups
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
9d7ec5b6cd
Removed unnecessary debug statement
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
246e46a97c
Return false if mandatory DH Group IKE19 is not available
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
0daee96b05
Started implementing handling of DH Nonce attributes
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
9a49d2e065
Implemented Diffie Hellman Nonce attributes
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
4ec5d26fdf
Write/Read flags field directly to/from variable
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
1c6ebda3db
Began implementing handline of Functional Component Measuring attributes
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
9032e61b88
Fixed bug at checking error code from file stat
2011-11-28 14:34:20 +01:00
Sansar Choinyambuu
3e951334a2
Implemented handling of File Metadata
2011-11-28 14:28:00 +01:00
Sansar Choinyambuu
d22716509a
File not Found, Invalid path, Invalid Delimiter PTS errors case checks implemented
2011-11-28 14:28:00 +01:00
Sansar Choinyambuu
d883495418
Implemented PTS attributes Request File Metadata, Unix-Style File Metadata
2011-09-10 22:39:55 +02:00
Sansar Choinyambuu
31ac5b0d6b
File not Found, Invalid path, Invalid Delimiter PTS errors case checks implemented
2011-09-10 22:39:55 +02:00
Sansar Choinyambuu
af275f3fdb
Added Check_Measurement function to pts_database instead of returning enumerator over hashes
...
List of requested files/directories are kept within imv state now
Allocated memory for entries in files_in_dir_with_meas list
2011-09-08 12:17:08 +02:00
Sansar Choinyambuu
e9fd8b4b7b
Added Check_Measurement function to pts_database instead of returning enumerator over hashes
...
List of requested files/directories are kept within imv state now
Allocated memory for entries in files_in_dir_with_meas list
2011-09-08 12:13:10 +02:00
Sansar Choinyambuu
1c10fb59bf
Added destroy functions for linked lists
2011-09-08 12:08:17 +02:00
Sansar Choinyambuu
6ef5c05829
Verification of directory contents measurements implemented
2011-09-08 12:08:17 +02:00
Sansar Choinyambuu
35cd6ec43c
Added measurements for libxt_udp.so and libxt_tcp.so to check dir measuring
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
a08796a5c3
Added directory column with default value of zero into file_hashes table
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
517c372a5a
Inserted missing "!" mark
...
Changed variable name for AIK cert, key paths in strongswan.conf
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
70f8d3242a
Removed identity.c related references and variables
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
63b7b6e322
Delete unnecessary fake_ek_cert header file
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
9816a29822
Read AIK certificate/ AIK public key from file
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
05a1b347b2
Enforced strongSwan coding rules (tab, if, {)
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
0f36d4815e
Initialized ekcertlen with 0
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
8ab124a2f7
removed static keyword
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
29505b2cd6
added fake_ek_cert.h to makefile.am
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
4fa364193c
Included fake_ek_cert header back
2011-09-08 12:08:16 +02:00
Sansar Choinyambuu
30fa35eec5
Added fake_ek_cert.h
2011-09-08 12:08:15 +02:00
Sansar Choinyambuu
f4527909f2
Obtain AIK and exchange as PEM certificate done
...
Fixed the trashy tail of last file name in Request File Measurement
2011-09-08 12:08:15 +02:00
Sansar Choinyambuu
90c963439e
Started implementing obtaining of AIK
2011-09-08 12:08:15 +02:00
Sansar Choinyambuu
46fd48797d
Restore flag calculation
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
b460d5f5ce
Reading and writing flags directly
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
f4cc834c45
SHA384 is set as strongest hashing algorithm
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
6434d41fa5
Added empty getter/setter for AIK
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
86f1cd15b8
Deleted switch statement for hashing algorithms, using the integer field directly for the query
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
2db719a509
Replaced reason strings with temporary ones for File Measurement Comparison
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
6d9e319dd7
Provide recommendation after all received attributes are handled
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
8ada2b68a3
Clone the path chunk before adding to measurements list
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
cd669535e6
Destroy meas_enumerator
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
f36ef96ed4
Added create_meas_enumerator function to pts_database object
...
Implemented handling part of File Measurement attributes reception
Ending the exchange and allowing access if all measurements match with database isolate if not
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
08a7bd530e
Corrected output length for SHA256 algorithm
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
aab0c587db
Deleted filter for measurement enumerator
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
f2f18b4e2f
The file and directory lists are queried from db
...
Request File Measurements sending and handling is implemented accordingly
Measuring the file and directories are tested
2011-09-08 12:08:14 +02:00
Sansar Choinyambuu
85ab2fc2a3
Deleted unnecessary debug statement
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
403409cbda
Corrected typo on product_file table
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
23f1509c4f
chunk_clone after read_data
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
f3aeb40bf1
Removed unnecessary struct
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
14ed35c52e
Corrected typo in query
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
20077abea2
Changes according to db implementation
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
921b1022a5
Moved hashing functionalities to pts object
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
a1ff28f582
Moved structures related to File Measurement to pts.h
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
97112ec23a
Implemented Error Codes Enumeration for PTS
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
bbe179e472
Proto Caps and Meas Algorithms
...
TPM Version Info (AIK as well) and Request File Meas
attributes are sent together in a single pa_tnc message
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
207c519bd3
Combined some attributes and got rid of many handshake_states
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
4259bd6fb4
Deleted intermediate handshake_state
2011-09-08 12:08:13 +02:00
Sansar Choinyambuu
c7787eac47
Implemented the ReceiveMessage function on imc/v
2011-09-08 12:08:11 +02:00
Sansar Choinyambuu
525d191a42
Implemented send_message of File Measurement PTS attribute on imc_attestation
2011-09-08 12:08:11 +02:00
Sansar Choinyambuu
4e691df55a
moved file_meas_entry_t struct to header file
2011-09-08 12:08:11 +02:00
Sansar Choinyambuu
5137beada3
Restored the changes
2011-09-08 12:08:11 +02:00
Sansar Choinyambuu
1dd8f9f6b1
Started implementing Notification Handshake and Send Message Functions
2011-09-08 12:08:10 +02:00
Sansar Choinyambuu
12c0a261cc
Finalized State class implementations for Attestation IMV/C
2011-09-08 12:08:10 +02:00
Sansar Choinyambuu
887cd7d253
Corrected typo
2011-09-08 12:08:10 +02:00
Sansar Choinyambuu
4b43764ce3
Modified the handling switch for Attributes reception on Attestation IMV/C
2011-09-08 12:08:10 +02:00
Sansar Choinyambuu
32fef433c1
Implemented TCG PTS File Measurement attribute
2011-09-08 12:08:10 +02:00
Sansar Choinyambuu
e80cf188c1
Corrected wrong parameter name
2011-09-08 12:08:10 +02:00
Sansar Choinyambuu
01f29d5979
Implemented TCG PTS Simple Evidence Final and Request File Measurement attributes
2011-09-08 12:08:10 +02:00
Sansar Choinyambuu
86e7dcfc45
Implemented TCG PTS Simple Evidence Final and Request File Measurement attributes
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
89f7bf2276
Changed the type of hash algorithm to the enum variable
...
Replaced the values of flag enum variables
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
adc954a77d
Implemented TCG PTS Simple Component Evidence Attribute
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
0105cc5c36
Use chunk_t.len instead of sizeof function
...
Bit 0 for the flag fields is the most significant field
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
d975e4a755
Changed the type of name field to corresponding enum type
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
f2b89288d0
Finalized the implementation of TCG PTS Request Functional Component Evidence Attribute
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
cbb7925245
Implemented TCG PTS Generate Attestation Evidence attribute
...
Added two new Attributes to sources in Makefile
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
befdbcb769
Draft version of TCG PTS Request Function Component Evidence Attribute
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
78f1b194bb
Commented compiler options Wall Werror for Makefile
...
Corrected bit 0 for AIK flags to be least significant bit
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
1f3f3021d5
Debugged TCG PTS attributes implementations
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
793d31279b
Changes according to the new PTS Attributes addition
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
3b80bce8c1
Implemented TCG PTS Attributes
2011-09-08 12:08:09 +02:00
Sansar Choinyambuu
e1ee0e20f7
PB-TNC messages implemented
2010-12-03 10:23:04 +01:00