# trunks **Repository Path**: mirrors_android_source/trunks ## Basic Information - **Project Name**: trunks - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-26 - **Last Updated**: 2023-08-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ====== 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 spec/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 spec/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.