• Home
Name Date Size #Lines LOC

..--

aidl/android/trunks/03-May-2024-4710

ftdi/03-May-2024-1,723989

generator/03-May-2024-109,93477,708

Android.mkD03-May-20245.8 KiB207157

CPPLINT.cfgD03-May-202437 21

MODULE_LICENSE_APACHE2D03-May-20240

MakefileD03-May-20241.5 KiB4118

NOTICED03-May-202410.4 KiB191158

OWNERSD03-May-202454 43

PRESUBMIT.cfgD03-May-202468 43

READMED03-May-20241.5 KiB5337

authorization_delegate.hD03-May-20242.5 KiB6623

background_command_transceiver.ccD03-May-20243.6 KiB11075

background_command_transceiver.hD03-May-20242.9 KiB8231

background_command_transceiver_test.ccD03-May-20243.4 KiB11174

binder_interface.hD03-May-2024831 276

blob_parser.ccD03-May-20244.6 KiB128103

blob_parser.hD03-May-20242.5 KiB6729

com.android.Trunks.confD03-May-2024489 1614

command_transceiver.hD03-May-20241.9 KiB5517

dbus_interface.hD03-May-20241.2 KiB3815

error_codes.ccD03-May-202411.2 KiB240205

error_codes.hD03-May-20243.9 KiB8949

hmac_authorization_delegate.ccD03-May-202411 KiB326278

hmac_authorization_delegate.hD03-May-20246.6 KiB16577

hmac_authorization_delegate_test.ccD03-May-202412.8 KiB273218

hmac_session.hD03-May-20242.5 KiB7224

hmac_session_impl.ccD03-May-20242.3 KiB7240

hmac_session_impl.hD03-May-20243.1 KiB8230

hmac_session_test.ccD03-May-20243.4 KiB10674

interface.protoD03-May-2024481 1814

mock_authorization_delegate.ccD03-May-2024830 255

mock_authorization_delegate.hD03-May-20241.6 KiB5024

mock_blob_parser.ccD03-May-20241.1 KiB3613

mock_blob_parser.hD03-May-20241.7 KiB5227

mock_command_transceiver.ccD03-May-2024815 255

mock_command_transceiver.hD03-May-20241.3 KiB4519

mock_hmac_session.ccD03-May-2024780 255

mock_hmac_session.hD03-May-20241.4 KiB4923

mock_policy_session.ccD03-May-2024790 255

mock_policy_session.hD03-May-20241.6 KiB5428

mock_session_manager.ccD03-May-2024922 319

mock_session_manager.hD03-May-20241.4 KiB4822

mock_tpm.ccD03-May-202410.2 KiB256231

mock_tpm.hD03-May-202473.3 KiB1,6481,610

mock_tpm_state.ccD03-May-20241.8 KiB4623

mock_tpm_state.hD03-May-20241.6 KiB5329

mock_tpm_utility.ccD03-May-2024775 255

mock_tpm_utility.hD03-May-20246 KiB134109

org.chromium.Trunks.confD03-May-2024492 1614

password_authorization_delegate.ccD03-May-20242.9 KiB9667

password_authorization_delegate.hD03-May-20242.3 KiB6229

password_authorization_delegate_test.ccD03-May-20244.1 KiB9760

policy_session.hD03-May-20243.3 KiB8930

policy_session_impl.ccD03-May-20246.1 KiB185145

policy_session_impl.hD03-May-20243.5 KiB8635

policy_session_test.ccD03-May-20248 KiB230182

resource_manager.ccD03-May-202430.8 KiB853729

resource_manager.hD03-May-202410.2 KiB23989

resource_manager_test.ccD03-May-202439.6 KiB897785

scoped_key_handle.ccD03-May-20242 KiB8249

scoped_key_handle.hD03-May-20242.5 KiB7224

scoped_key_handle_test.ccD03-May-20242.7 KiB9564

session_manager.hD03-May-20242.7 KiB7425

session_manager_impl.ccD03-May-20248.1 KiB219171

session_manager_impl.hD03-May-20242.6 KiB7328

session_manager_test.ccD03-May-20246.3 KiB172136

tpm_constants.hD03-May-20241.5 KiB4621

tpm_generated.ccD03-May-20241.1 MiB41,01539,000

tpm_generated.hD03-May-2024221.4 KiB6,6926,072

tpm_generated_test.ccD03-May-202418.5 KiB441370

tpm_handle.ccD03-May-20242.9 KiB9868

tpm_handle.hD03-May-20242 KiB6421

tpm_simulator_handle.ccD03-May-20242.2 KiB7849

tpm_simulator_handle.hD03-May-20241.9 KiB6021

tpm_state.hD03-May-20243 KiB9532

tpm_state_impl.ccD03-May-20248.1 KiB247197

tpm_state_impl.hD03-May-20242.4 KiB7945

tpm_state_test.ccD03-May-202415 KiB385329

tpm_utility.hD03-May-202415 KiB305126

tpm_utility_impl.ccD03-May-202471.7 KiB1,8731,757

tpm_utility_impl.hD03-May-20249 KiB207140

tpm_utility_test.ccD03-May-202480.9 KiB2,0601,866

trunks.gypD03-May-20244.7 KiB184182

trunks_binder_proxy.ccD03-May-20244.4 KiB12291

trunks_binder_proxy.hD03-May-20241.7 KiB5421

trunks_binder_service.ccD03-May-20244.2 KiB12188

trunks_binder_service.hD03-May-20242.7 KiB9145

trunks_client.ccD03-May-20248 KiB247211

trunks_client_test.ccD03-May-202441.6 KiB1,0851,004

trunks_client_test.hD03-May-20245.4 KiB14846

trunks_dbus_proxy.ccD03-May-20243.7 KiB11379

trunks_dbus_proxy.hD03-May-20242 KiB6730

trunks_dbus_service.ccD03-May-20242.7 KiB7345

trunks_dbus_service.hD03-May-20242.4 KiB8036

trunks_export.hD03-May-2024900 254

trunks_factory.hD03-May-20242.6 KiB8335

trunks_factory_for_test.ccD03-May-202420.2 KiB600471

trunks_factory_for_test.hD03-May-20244 KiB13283

trunks_factory_impl.ccD03-May-20243 KiB10067

trunks_factory_impl.hD03-May-20242.3 KiB6933

trunks_ftdi_spi.ccD03-May-202410.4 KiB345223

trunks_ftdi_spi.hD03-May-20243.5 KiB10548

trunks_testrunner.ccD03-May-20241.1 KiB3213

trunksd-seccomp-arm.policyD03-May-20241.3 KiB7868

trunksd-seccomp-arm64.policyD03-May-20241.3 KiB7868

trunksd-seccomp-x86.policyD03-May-20241.4 KiB8575

trunksd-seccomp-x86_64.policyD03-May-20241.4 KiB8474

trunksd-simulator.rcD03-May-2024175 97

trunksd.ccD03-May-20244.3 KiB12489

trunksd.confD03-May-2024797 256

trunksd.rcD03-May-2024163 97

README

1======
2TRUNKS
3======
4
5The Trunks TPM Library (TTL) is a set of types and functions used to interface
6with a Trusted Platform Module.  It is designed to be light, and does not
7comply with the TSS specification.  It is usable in firmware as well as in
8user-level code.
9
10-----------------
11TPM SPECIFICATION
12-----------------
13
14See http://www.trustedcomputinggroup.org.  This version of trunks is based on
15TPM 2.0 rev 00.99.
16
17--- Structures ---
18generator/raw_structures.txt
19generator/raw_structures_fixed.txt
20
21This file is a direct PDF scrape* of 'Part 2 - Structures'.  The '_fixed'
22version includes some manual fixes to make processing easier.
23
24--- Commands ---
25generator/raw_commands.txt
26generator/raw_commands_fixed.txt
27
28This file is a direct PDF scrape* of 'Part 3 - Commands'.  The '_fixed' version
29includes some manual fixes to make processing easier.
30
31---
32*Scraping for this version of trunks used Poppler's pdftotext utility v0.18.4.
33
34---------------
35CODE GENERATION
36---------------
37
38generator/extract_structures.sh
39
40Extracts structured information about types, constants, structures, and unions
41from spec/raw_structures_fixed.txt.  The output of this script is intended to be
42parsed by generator.py.
43
44generator/extract_commands.sh
45
46Extracts structured information about commands from spec/raw_commands_fixed.txt.
47The output of this script is intended to be parsed by generator.py.
48
49generator/generator.py
50
51Generates C++ serialization and parsing code for TPM commands.  Inputs must be
52formatted as by the extract_* scripts.
53