tree: 676fb65f0ecc53266ad02bc68c5dac9c87a9cfe6 [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. dbus_interface.h
  13. error_codes.cc
  14. error_codes.h
  15. hmac_authorization_delegate.cc
  16. hmac_authorization_delegate.h
  17. hmac_authorization_delegate_test.cc
  18. hmac_session.h
  19. hmac_session_impl.cc
  20. hmac_session_impl.h
  21. hmac_session_test.cc
  22. interface.proto
  23. libtrunks.pc.in
  24. Makefile
  25. mock_authorization_delegate.cc
  26. mock_authorization_delegate.h
  27. mock_blob_parser.cc
  28. mock_blob_parser.h
  29. mock_command_transceiver.cc
  30. mock_command_transceiver.h
  31. mock_dbus_bus.h
  32. mock_dbus_object_proxy.h
  33. mock_hmac_session.cc
  34. mock_hmac_session.h
  35. mock_policy_session.cc
  36. mock_policy_session.h
  37. mock_resource_manager.h
  38. mock_session_manager.cc
  39. mock_session_manager.h
  40. mock_tpm.cc
  41. mock_tpm.h
  42. mock_tpm_state.cc
  43. mock_tpm_state.h
  44. mock_tpm_utility.cc
  45. mock_tpm_utility.h
  46. org.chromium.Trunks.conf
  47. OWNERS
  48. password_authorization_delegate.cc
  49. password_authorization_delegate.h
  50. password_authorization_delegate_test.cc
  51. policy_session.h
  52. policy_session_impl.cc
  53. policy_session_impl.h
  54. policy_session_test.cc
  55. power_manager.cc
  56. power_manager.h
  57. power_manager_test.cc
  58. README.md
  59. resource_manager.cc
  60. resource_manager.h
  61. resource_manager_test.cc
  62. scoped_global_session.h
  63. scoped_global_session_test.cc
  64. scoped_key_handle.cc
  65. scoped_key_handle.h
  66. scoped_key_handle_test.cc
  67. session_manager.h
  68. session_manager_impl.cc
  69. session_manager_impl.h
  70. session_manager_test.cc
  71. tpm_alerts.h
  72. tpm_constants.h
  73. tpm_generated.cc
  74. tpm_generated.h
  75. tpm_generated_test.cc
  76. tpm_handle.cc
  77. tpm_handle.h
  78. tpm_simulator_handle.cc
  79. tpm_simulator_handle.h
  80. tpm_state.h
  81. tpm_state_impl.cc
  82. tpm_state_impl.h
  83. tpm_state_test.cc
  84. tpm_utility.h
  85. tpm_utility_impl.cc
  86. tpm_utility_impl.h
  87. tpm_utility_test.cc
  88. tpm_version
  89. trunks.gyp
  90. trunks_client.cc
  91. trunks_client_test.cc
  92. trunks_client_test.h
  93. trunks_dbus_proxy.cc
  94. trunks_dbus_proxy.h
  95. trunks_dbus_proxy_test.cc
  96. trunks_dbus_service.cc
  97. trunks_dbus_service.h
  98. trunks_export.h
  99. trunks_factory.h
  100. trunks_factory_for_test.cc
  101. trunks_factory_for_test.h
  102. trunks_factory_impl.cc
  103. trunks_factory_impl.h
  104. trunks_factory_test.cc
  105. trunks_ftdi_spi.cc
  106. trunks_ftdi_spi.h
  107. trunks_send.cc
  108. trunks_testrunner.cc
  109. trunksd-seccomp-amd64.policy
  110. trunksd-seccomp-arm.policy
  111. trunksd-seccomp-arm64.policy
  112. trunksd-seccomp-mips.policy
  113. trunksd-seccomp-x86.policy
  114. trunksd-seccomp-x86_64.policy
  115. trunksd-simulator.rc
  116. trunksd.cc
  117. trunksd.conf
  118. trunksd.conf.cr50
  119. trunksd.conf.tpm2_simulator
  120. 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.