tree: 529d96d058a42fa53533ca441ba3ef0f9137a230 [path history] [tgz]
  1. ftdi/
  2. generator/
  3. authorization_delegate.h
  4. background_command_transceiver.cc
  5. background_command_transceiver.h
  6. background_command_transceiver_test.cc
  7. blob_parser.cc
  8. blob_parser.h
  9. com.android.Trunks.conf
  10. command_transceiver.h
  11. CPPLINT.cfg
  12. creation_blob_fuzzer.cc
  13. dbus_interface.h
  14. error_codes.cc
  15. error_codes.h
  16. fuzzed_command_transceiver.cc
  17. fuzzed_command_transceiver.h
  18. hmac_authorization_delegate.cc
  19. hmac_authorization_delegate.h
  20. hmac_authorization_delegate_test.cc
  21. hmac_session.h
  22. hmac_session_impl.cc
  23. hmac_session_impl.h
  24. hmac_session_test.cc
  25. interface.proto
  26. key_blob_fuzzer.cc
  27. libtrunks.pc.in
  28. Makefile
  29. mock_authorization_delegate.cc
  30. mock_authorization_delegate.h
  31. mock_blob_parser.cc
  32. mock_blob_parser.h
  33. mock_command_transceiver.cc
  34. mock_command_transceiver.h
  35. mock_dbus_bus.h
  36. mock_dbus_object_proxy.h
  37. mock_hmac_session.cc
  38. mock_hmac_session.h
  39. mock_policy_session.cc
  40. mock_policy_session.h
  41. mock_resource_manager.h
  42. mock_session_manager.cc
  43. mock_session_manager.h
  44. mock_tpm.cc
  45. mock_tpm.h
  46. mock_tpm_state.cc
  47. mock_tpm_state.h
  48. mock_tpm_utility.cc
  49. mock_tpm_utility.h
  50. org.chromium.Trunks.conf
  51. OWNERS
  52. password_authorization_delegate.cc
  53. password_authorization_delegate.h
  54. password_authorization_delegate_test.cc
  55. pinweaver.proto
  56. pinweaver_client.cc
  57. policy_session.h
  58. policy_session_impl.cc
  59. policy_session_impl.h
  60. policy_session_test.cc
  61. power_manager.cc
  62. power_manager.h
  63. power_manager_test.cc
  64. README.md
  65. resource_manager.cc
  66. resource_manager.h
  67. resource_manager_fuzzer.cc
  68. resource_manager_test.cc
  69. scoped_global_session.h
  70. scoped_global_session_test.cc
  71. scoped_key_handle.cc
  72. scoped_key_handle.h
  73. scoped_key_handle_test.cc
  74. session_manager.h
  75. session_manager_impl.cc
  76. session_manager_impl.h
  77. session_manager_test.cc
  78. tpm_alerts.h
  79. tpm_constants.h
  80. tpm_generated.cc
  81. tpm_generated.h
  82. tpm_generated_test.cc
  83. tpm_handle.cc
  84. tpm_handle.h
  85. tpm_pinweaver.cc
  86. tpm_pinweaver.h
  87. tpm_simulator_handle.cc
  88. tpm_simulator_handle.h
  89. tpm_state.h
  90. tpm_state_impl.cc
  91. tpm_state_impl.h
  92. tpm_state_test.cc
  93. tpm_utility.h
  94. tpm_utility_impl.cc
  95. tpm_utility_impl.h
  96. tpm_utility_test.cc
  97. tpm_version
  98. trunks.gyp
  99. trunks_client.cc
  100. trunks_client_test.cc
  101. trunks_client_test.h
  102. trunks_dbus_proxy.cc
  103. trunks_dbus_proxy.h
  104. trunks_dbus_proxy_test.cc
  105. trunks_dbus_service.cc
  106. trunks_dbus_service.h
  107. trunks_export.h
  108. trunks_factory.h
  109. trunks_factory_for_test.cc
  110. trunks_factory_for_test.h
  111. trunks_factory_impl.cc
  112. trunks_factory_impl.h
  113. trunks_factory_test.cc
  114. trunks_ftdi_spi.cc
  115. trunks_ftdi_spi.h
  116. trunks_send.cc
  117. trunks_testrunner.cc
  118. trunksd-seccomp-amd64.policy
  119. trunksd-seccomp-arm.policy
  120. trunksd-seccomp-arm64.policy
  121. trunksd-seccomp-mips.policy
  122. trunksd-seccomp-x86.policy
  123. trunksd-seccomp-x86_64.policy
  124. trunksd-simulator.rc
  125. trunksd.cc
  126. trunksd.conf
  127. trunksd.conf.cr50
  128. trunksd.conf.tpm2_simulator
  129. trunksd.rc
trunks/README.md

Trunks

The Trunks TPM Library (TTL) is a set of types and functions used to interface with a Trusted Platform Module. It is designed to be light, and does not comply with the TSS specification. It is usable in firmware as well as in user-level code.

TPM Specification

See http://www.trustedcomputinggroup.org. This version of trunks is based on TPM 2.0 rev 00.99.

Structures

generator/raw_structures.txt

generator/raw_structures_fixed.txt

This file is a direct PDF scrape (*) of ‘Part 2 - Structures’. The _fixed version includes some manual fixes to make processing easier.

Commands

generator/raw_commands.txt

generator/raw_commands_fixed.txt

This file is a direct PDF scrape (*) of ‘Part 3 - Commands’. The _fixed version includes some manual fixes to make processing easier.

(*) Scraping for this version of trunks used Poppler's pdftotext utility v0.18.4.

Code Generation

generator/extract_structures.sh

Extracts structured information about types, constants, structures, and unions from generator/raw_structures_fixed.txt. The output of this script is intended to be parsed by generator.py.

generator/extract_commands.sh

Extracts structured information about commands from generator/raw_commands_fixed.txt. The output of this script is intended to be parsed by generator.py.

generator/generator.py

Generates C++ serialization and parsing code for TPM commands. Inputs must be formatted as by the extract_* scripts.