• Home
Name Date Size #Lines LOC

..--

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

ftdi/03-May-2024-1,722987

generator/03-May-2024-109,94377,714

Android.bpD03-May-20244.3 KiB188179

Android.mkD03-May-2024938 257

CPPLINT.cfgD03-May-202437 21

MODULE_LICENSE_APACHE2D03-May-20240

MakefileD03-May-20241.5 KiB4118

NOTICED03-May-202410.4 KiB191158

OWNERSD03-May-202450 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 KiB10671

background_command_transceiver.hD03-May-20242.9 KiB8231

background_command_transceiver_test.ccD03-May-20243.4 KiB10871

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 KiB5416

dbus_interface.hD03-May-20241.2 KiB3815

error_codes.ccD03-May-202412 KiB363328

error_codes.hD03-May-20243.9 KiB9050

hmac_authorization_delegate.ccD03-May-202411 KiB314266

hmac_authorization_delegate.hD03-May-20246.6 KiB16274

hmac_authorization_delegate_test.ccD03-May-202411.9 KiB258203

hmac_session.hD03-May-20242.6 KiB7123

hmac_session_impl.ccD03-May-20242.2 KiB7038

hmac_session_impl.hD03-May-20243.2 KiB8231

hmac_session_test.ccD03-May-20243.3 KiB10674

interface.protoD03-May-2024481 1814

mock_authorization_delegate.ccD03-May-2024830 255

mock_authorization_delegate.hD03-May-20241.4 KiB4822

mock_blob_parser.ccD03-May-20241.1 KiB3613

mock_blob_parser.hD03-May-20241.5 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.5 KiB4923

mock_policy_session.ccD03-May-2024790 255

mock_policy_session.hD03-May-20241.7 KiB5529

mock_session_manager.ccD03-May-2024922 319

mock_session_manager.hD03-May-20241.3 KiB4923

mock_tpm.ccD03-May-202411.2 KiB246221

mock_tpm.hD03-May-202484.5 KiB1,6461,608

mock_tpm_state.ccD03-May-20241.8 KiB4724

mock_tpm_state.hD03-May-20241.8 KiB5632

mock_tpm_utility.ccD03-May-2024775 255

mock_tpm_utility.hD03-May-20245.6 KiB152127

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-20243.7 KiB9760

policy_session.hD03-May-20243.4 KiB9130

policy_session_impl.ccD03-May-20246.5 KiB190149

policy_session_impl.hD03-May-20243.5 KiB8737

policy_session_test.ccD03-May-20247.9 KiB227179

resource_manager.ccD03-May-202430 KiB836712

resource_manager.hD03-May-202410.2 KiB23989

resource_manager_test.ccD03-May-202433.6 KiB784672

scoped_key_handle.ccD03-May-20242 KiB8047

scoped_key_handle.hD03-May-20242.5 KiB7224

scoped_key_handle_test.ccD03-May-20242.7 KiB9362

session_manager.hD03-May-20242.7 KiB7324

session_manager_impl.ccD03-May-20247.9 KiB218170

session_manager_impl.hD03-May-20242.6 KiB7228

session_manager_test.ccD03-May-20246.4 KiB168133

tpm_constants.hD03-May-20242.4 KiB6439

tpm_generated.ccD03-May-20241.1 MiB33,22731,213

tpm_generated.hD03-May-2024261.3 KiB6,1195,500

tpm_generated_test.ccD03-May-202416.6 KiB451380

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.5 KiB10736

tpm_state_impl.ccD03-May-20248.6 KiB275223

tpm_state_impl.hD03-May-20243 KiB8951

tpm_state_test.ccD03-May-202414.5 KiB366295

tpm_utility.hD03-May-202416.4 KiB329139

tpm_utility_impl.ccD03-May-202470 KiB1,8631,750

tpm_utility_impl.hD03-May-20249.8 KiB223156

tpm_utility_test.ccD03-May-202480.1 KiB2,0381,838

trunks.gypD03-May-20244.7 KiB184182

trunks_binder_proxy.ccD03-May-20244.4 KiB12392

trunks_binder_proxy.hD03-May-20241.8 KiB5622

trunks_binder_service.ccD03-May-20244.2 KiB12188

trunks_binder_service.hD03-May-20242.7 KiB9045

trunks_client.ccD03-May-20249.3 KiB282243

trunks_client_test.ccD03-May-202442.4 KiB1,1091,026

trunks_client_test.hD03-May-20245.4 KiB14645

trunks_dbus_proxy.ccD03-May-20243.7 KiB10471

trunks_dbus_proxy.hD03-May-20242 KiB6730

trunks_dbus_service.ccD03-May-20242.7 KiB7345

trunks_dbus_service.hD03-May-20242.4 KiB7835

trunks_export.hD03-May-2024900 254

trunks_factory.hD03-May-20242.7 KiB8234

trunks_factory_for_test.ccD03-May-202421.3 KiB598462

trunks_factory_for_test.hD03-May-20244.2 KiB13181

trunks_factory_impl.ccD03-May-20243.1 KiB10874

trunks_factory_impl.hD03-May-20242.7 KiB7734

trunks_ftdi_spi.ccD03-May-202410.4 KiB346225

trunks_ftdi_spi.hD03-May-20243.5 KiB10548

trunks_testrunner.ccD03-May-20241.1 KiB3213

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

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

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

trunksd-seccomp-mips.policyD03-May-20241.3 KiB7969

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

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

trunksd-simulator.rcD03-May-2024175 97

trunksd.ccD03-May-20244.3 KiB12388

trunksd.confD03-May-2024797 256

trunksd.rcD03-May-2024151 86

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