• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

aidl/android/trunks/22-Nov-2023-4710

ftdi/22-Nov-2023-1,722987

generator/22-Nov-2023-74,28751,226

Android.mkD22-Nov-20236.2 KiB214172

CPPLINT.cfgD22-Nov-202337 21

MODULE_LICENSE_APACHE2D22-Nov-20230

MakefileD22-Nov-20231.5 KiB4118

NOTICED22-Nov-202310.4 KiB191158

OWNERSD22-Nov-202350 43

PRESUBMIT.cfgD22-Nov-202368 43

READMED22-Nov-20231.5 KiB5337

authorization_delegate.hD22-Nov-20232.5 KiB6623

background_command_transceiver.ccD22-Nov-20233.6 KiB10671

background_command_transceiver.hD22-Nov-20232.9 KiB8231

background_command_transceiver_test.ccD22-Nov-20233.3 KiB10871

binder_interface.hD22-Nov-2023831 276

blob_parser.ccD22-Nov-20234.6 KiB128103

blob_parser.hD22-Nov-20232.5 KiB6729

com.android.Trunks.confD22-Nov-2023489 1614

command_transceiver.hD22-Nov-20231.9 KiB5416

dbus_interface.hD22-Nov-20231.2 KiB3815

error_codes.ccD22-Nov-202312 KiB363328

error_codes.hD22-Nov-20233.9 KiB9050

hmac_authorization_delegate.ccD22-Nov-202311 KiB314266

hmac_authorization_delegate.hD22-Nov-20236.6 KiB16274

hmac_authorization_delegate_test.ccD22-Nov-202311.9 KiB258203

hmac_session.hD22-Nov-20232.6 KiB7123

hmac_session_impl.ccD22-Nov-20232.2 KiB7038

hmac_session_impl.hD22-Nov-20233.2 KiB8231

hmac_session_test.ccD22-Nov-20233.3 KiB10674

interface.protoD22-Nov-2023481 1814

mock_authorization_delegate.ccD22-Nov-2023830 255

mock_authorization_delegate.hD22-Nov-20231.4 KiB4822

mock_blob_parser.ccD22-Nov-20231.1 KiB3613

mock_blob_parser.hD22-Nov-20231.5 KiB5227

mock_command_transceiver.ccD22-Nov-2023815 255

mock_command_transceiver.hD22-Nov-20231.3 KiB4519

mock_hmac_session.ccD22-Nov-2023780 255

mock_hmac_session.hD22-Nov-20231.5 KiB4923

mock_policy_session.ccD22-Nov-2023790 255

mock_policy_session.hD22-Nov-20231.7 KiB5529

mock_session_manager.ccD22-Nov-2023922 319

mock_session_manager.hD22-Nov-20231.3 KiB4923

mock_tpm.ccD22-Nov-202311.2 KiB246221

mock_tpm.hD22-Nov-202384.5 KiB1,6461,608

mock_tpm_state.ccD22-Nov-20231.8 KiB4724

mock_tpm_state.hD22-Nov-20231.8 KiB5632

mock_tpm_utility.ccD22-Nov-2023775 255

mock_tpm_utility.hD22-Nov-20235.6 KiB152127

org.chromium.Trunks.confD22-Nov-2023492 1614

password_authorization_delegate.ccD22-Nov-20232.9 KiB9667

password_authorization_delegate.hD22-Nov-20232.3 KiB6229

password_authorization_delegate_test.ccD22-Nov-20233.7 KiB9760

policy_session.hD22-Nov-20233.4 KiB9130

policy_session_impl.ccD22-Nov-20236.5 KiB190149

policy_session_impl.hD22-Nov-20233.5 KiB8737

policy_session_test.ccD22-Nov-20237.9 KiB227179

resource_manager.ccD22-Nov-202330 KiB836712

resource_manager.hD22-Nov-202310.2 KiB23989

resource_manager_test.ccD22-Nov-202333.6 KiB784672

scoped_key_handle.ccD22-Nov-20232 KiB8047

scoped_key_handle.hD22-Nov-20232.5 KiB7224

scoped_key_handle_test.ccD22-Nov-20232.7 KiB9362

session_manager.hD22-Nov-20232.7 KiB7324

session_manager_impl.ccD22-Nov-20237.9 KiB217169

session_manager_impl.hD22-Nov-20232.6 KiB7228

session_manager_test.ccD22-Nov-20236.4 KiB168133

tpm_constants.hD22-Nov-20232.4 KiB6439

tpm_generated.ccD22-Nov-20231.1 MiB

tpm_generated.hD22-Nov-2023261.3 KiB

tpm_generated_test.ccD22-Nov-202316.5 KiB451380

tpm_handle.ccD22-Nov-20232.9 KiB9868

tpm_handle.hD22-Nov-20232 KiB6421

tpm_simulator_handle.ccD22-Nov-20232.2 KiB7849

tpm_simulator_handle.hD22-Nov-20231.9 KiB6021

tpm_state.hD22-Nov-20233.5 KiB10736

tpm_state_impl.ccD22-Nov-20238.6 KiB275223

tpm_state_impl.hD22-Nov-20233 KiB8951

tpm_state_test.ccD22-Nov-202314.5 KiB366295

tpm_utility.hD22-Nov-202316.4 KiB329139

tpm_utility_impl.ccD22-Nov-202369.9 KiB1,8621,749

tpm_utility_impl.hD22-Nov-20239.8 KiB223156

tpm_utility_test.ccD22-Nov-202380.1 KiB2,0371,837

trunks.gypD22-Nov-20234.7 KiB184182

trunks_binder_proxy.ccD22-Nov-20234.4 KiB12392

trunks_binder_proxy.hD22-Nov-20231.8 KiB5622

trunks_binder_service.ccD22-Nov-20234.2 KiB12188

trunks_binder_service.hD22-Nov-20232.7 KiB9045

trunks_client.ccD22-Nov-20239.3 KiB282243

trunks_client_test.ccD22-Nov-202342.4 KiB1,1071,024

trunks_client_test.hD22-Nov-20235.4 KiB14645

trunks_dbus_proxy.ccD22-Nov-20233.7 KiB10471

trunks_dbus_proxy.hD22-Nov-20232 KiB6730

trunks_dbus_service.ccD22-Nov-20232.7 KiB7345

trunks_dbus_service.hD22-Nov-20232.4 KiB7835

trunks_export.hD22-Nov-2023900 254

trunks_factory.hD22-Nov-20232.7 KiB8234

trunks_factory_for_test.ccD22-Nov-202321.3 KiB598462

trunks_factory_for_test.hD22-Nov-20234.2 KiB13181

trunks_factory_impl.ccD22-Nov-20233.1 KiB10874

trunks_factory_impl.hD22-Nov-20232.7 KiB7734

trunks_ftdi_spi.ccD22-Nov-202310.4 KiB346225

trunks_ftdi_spi.hD22-Nov-20233.5 KiB10548

trunks_testrunner.ccD22-Nov-20231.1 KiB3213

trunksd-seccomp-amd64.policyD22-Nov-20231.4 KiB8575

trunksd-seccomp-arm.policyD22-Nov-20231.3 KiB7969

trunksd-seccomp-arm64.policyD22-Nov-20231.3 KiB7969

trunksd-seccomp-mips.policyD22-Nov-20231.3 KiB7969

trunksd-seccomp-x86.policyD22-Nov-20231.4 KiB8676

trunksd-seccomp-x86_64.policyD22-Nov-20231.4 KiB8575

trunksd-simulator.rcD22-Nov-2023175 97

trunksd.ccD22-Nov-20234.3 KiB12388

trunksd.confD22-Nov-2023797 256

trunksd.rcD22-Nov-2023151 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