NameDateSize

..10-Aug-20184 KiB

aidl/10-Aug-20184 KiB

Android.bp10-Aug-20184.3 KiB

Android.mk10-Aug-2018938

authorization_delegate.h10-Aug-20182.5 KiB

background_command_transceiver.cc10-Aug-20183.6 KiB

background_command_transceiver.h10-Aug-20182.9 KiB

background_command_transceiver_test.cc10-Aug-20183.4 KiB

binder_interface.h10-Aug-2018831

blob_parser.cc10-Aug-20184.6 KiB

blob_parser.h10-Aug-20182.5 KiB

com.android.Trunks.conf10-Aug-2018489

command_transceiver.h10-Aug-20181.9 KiB

CPPLINT.cfg10-Aug-201837

dbus_interface.h10-Aug-20181.2 KiB

error_codes.cc10-Aug-201812 KiB

error_codes.h10-Aug-20183.9 KiB

ftdi/10-Aug-20184 KiB

generator/10-Aug-20184 KiB

hmac_authorization_delegate.cc10-Aug-201811 KiB

hmac_authorization_delegate.h10-Aug-20186.6 KiB

hmac_authorization_delegate_test.cc10-Aug-201811.9 KiB

hmac_session.h10-Aug-20182.6 KiB

hmac_session_impl.cc10-Aug-20182.2 KiB

hmac_session_impl.h10-Aug-20183.2 KiB

hmac_session_test.cc10-Aug-20183.3 KiB

interface.proto10-Aug-2018481

Makefile10-Aug-20181.5 KiB

mock_authorization_delegate.cc10-Aug-2018830

mock_authorization_delegate.h10-Aug-20181.4 KiB

mock_blob_parser.cc10-Aug-20181.1 KiB

mock_blob_parser.h10-Aug-20181.5 KiB

mock_command_transceiver.cc10-Aug-2018815

mock_command_transceiver.h10-Aug-20181.3 KiB

mock_hmac_session.cc10-Aug-2018780

mock_hmac_session.h10-Aug-20181.5 KiB

mock_policy_session.cc10-Aug-2018790

mock_policy_session.h10-Aug-20181.7 KiB

mock_session_manager.cc10-Aug-2018922

mock_session_manager.h10-Aug-20181.3 KiB

mock_tpm.cc10-Aug-201811.2 KiB

mock_tpm.h10-Aug-201884.5 KiB

mock_tpm_state.cc10-Aug-20181.8 KiB

mock_tpm_state.h10-Aug-20181.8 KiB

mock_tpm_utility.cc10-Aug-2018775

mock_tpm_utility.h10-Aug-20185.6 KiB

MODULE_LICENSE_APACHE210-Aug-20180

NOTICE10-Aug-201810.4 KiB

org.chromium.Trunks.conf10-Aug-2018492

OWNERS10-Aug-201850

password_authorization_delegate.cc10-Aug-20182.9 KiB

password_authorization_delegate.h10-Aug-20182.3 KiB

password_authorization_delegate_test.cc10-Aug-20183.7 KiB

policy_session.h10-Aug-20183.4 KiB

policy_session_impl.cc10-Aug-20186.5 KiB

policy_session_impl.h10-Aug-20183.5 KiB

policy_session_test.cc10-Aug-20187.9 KiB

PRESUBMIT.cfg10-Aug-201868

README10-Aug-20181.5 KiB

resource_manager.cc10-Aug-201830 KiB

resource_manager.h10-Aug-201810.2 KiB

resource_manager_test.cc10-Aug-201833.6 KiB

scoped_key_handle.cc10-Aug-20182 KiB

scoped_key_handle.h10-Aug-20182.5 KiB

scoped_key_handle_test.cc10-Aug-20182.7 KiB

session_manager.h10-Aug-20182.7 KiB

session_manager_impl.cc10-Aug-20187.9 KiB

session_manager_impl.h10-Aug-20182.6 KiB

session_manager_test.cc10-Aug-20186.4 KiB

tpm_constants.h10-Aug-20182.4 KiB

tpm_generated.cc10-Aug-20181.1 MiB

tpm_generated.h10-Aug-2018261.3 KiB

tpm_generated_test.cc10-Aug-201816.6 KiB

tpm_handle.cc10-Aug-20182.9 KiB

tpm_handle.h10-Aug-20182 KiB

tpm_simulator_handle.cc10-Aug-20182.2 KiB

tpm_simulator_handle.h10-Aug-20181.9 KiB

tpm_state.h10-Aug-20183.5 KiB

tpm_state_impl.cc10-Aug-20188.6 KiB

tpm_state_impl.h10-Aug-20183 KiB

tpm_state_test.cc10-Aug-201814.5 KiB

tpm_utility.h10-Aug-201816.4 KiB

tpm_utility_impl.cc10-Aug-201870 KiB

tpm_utility_impl.h10-Aug-20189.8 KiB

tpm_utility_test.cc10-Aug-201880.1 KiB

trunks.gyp10-Aug-20184.7 KiB

trunks_binder_proxy.cc10-Aug-20184.4 KiB

trunks_binder_proxy.h10-Aug-20181.8 KiB

trunks_binder_service.cc10-Aug-20184.2 KiB

trunks_binder_service.h10-Aug-20182.7 KiB

trunks_client.cc10-Aug-20189.3 KiB

trunks_client_test.cc10-Aug-201842.4 KiB

trunks_client_test.h10-Aug-20185.4 KiB

trunks_dbus_proxy.cc10-Aug-20183.7 KiB

trunks_dbus_proxy.h10-Aug-20182 KiB

trunks_dbus_service.cc10-Aug-20182.7 KiB

trunks_dbus_service.h10-Aug-20182.4 KiB

trunks_export.h10-Aug-2018900

trunks_factory.h10-Aug-20182.7 KiB

trunks_factory_for_test.cc10-Aug-201821.3 KiB

trunks_factory_for_test.h10-Aug-20184.2 KiB

trunks_factory_impl.cc10-Aug-20183.1 KiB

trunks_factory_impl.h10-Aug-20182.7 KiB

trunks_ftdi_spi.cc10-Aug-201810.4 KiB

trunks_ftdi_spi.h10-Aug-20183.5 KiB

trunks_testrunner.cc10-Aug-20181.1 KiB

trunksd-seccomp-amd64.policy10-Aug-20181.4 KiB

trunksd-seccomp-arm.policy10-Aug-20181.3 KiB

trunksd-seccomp-arm64.policy10-Aug-20181.3 KiB

trunksd-seccomp-mips.policy10-Aug-20181.3 KiB

trunksd-seccomp-x86.policy10-Aug-20181.4 KiB

trunksd-seccomp-x86_64.policy10-Aug-20181.4 KiB

trunksd-simulator.rc10-Aug-2018175

trunksd.cc10-Aug-20184.3 KiB

trunksd.conf10-Aug-2018797

trunksd.rc10-Aug-2018151

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