| commit | f5ef1e54041b6a14646899078e9e8cf588cfccb8 | [log] [tgz] |
|---|---|---|
| author | Matthew Ellis <Matthew.Ellis@arm.com> | Tue Aug 05 12:10:42 2025 +0100 |
| committer | Matthew Ellis <Matthew.Ellis@arm.com> | Mon Dec 08 11:16:35 2025 +0000 |
| tree | 98afa759e43e440efcaf8f527ff345c5998c9b0f | |
| parent | 44467650a76de62ae443dbfd70058c82b2e8dbe0 [diff] |
refactor: tidy macros and add static assert Add static assert and check that header size matches defined constant. Parenthesize macros for safety. Move BYTE, WORD, DWORD macros out of header file to avoid name clashes. Set ENCODE_LIMIT to 64, as second MSB is reserved per TPM spec table 48. Rename CS_ASSERT_OFFSET to TPM_SPI_ADDR_PREFIX. Signed-off-by: Matthew Ellis <Matthew.Ellis@arm.com> Change-Id: I3cc6f896b905c9cb22fb64a370e509f4dfc3911f
TCG2-compliant TPM library based on the TCG PC Client Platform TPM Profile for TPM 2.0 Specification v1.06.
This library provides a lightweight C interface for interacting with TPM 2.0 devices, specifically targeting platforms compliant with the TCG2 specification.
cmake -B build cmake --build build
CC=aarch64-linux-gnu-gcc cmake -B build -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY cmake --build build
This project is licensed under the BSD 3-Clause License. See the LICENSE file for more information.